"Can't Call Animator.Update on inactive object"

DisaronnoDog

New member
Hey all
Wondered if anyone knew an easy workaround for the console warning: "Can't call Animator.Update on inactive object"...?
I am using a homebrew object pooling system to pool enemies, however, whenever an enemy is disabled, I am given this warning repeatedly in the console. I assumed that the Animator wouldn't be being called on an inactive object, but I guess it still is... Anyone know how I can prevent this??
 
I believe this is just how the Animator component works in Unity - I think you should manually disable the Animator component before disabling the gameobject, then re-enable it after the gameobject is enabled. One thing to be aware of is that disabling an Animator component causes its state to fully reset.
 
Top