- Home /
How to manually update animator?
I know I can call an animator's update manually, but I cannot stop it from being updated by unity automatically. In result, if I update it manually, it's getting updated twice.
I tried using
SetTimeUpdateMode(UnityEngine.Experimental.Director.DirectorUpdateMode.Manual);
But this doesn't seem to work for me, I'm on Unity 5.3.4f1.
Unfortunately Animator.updateMode doesn't have an option to set the update mode to manual.
I'm having the same problem with DirectorUpdate$$anonymous$$ode.$$anonymous$$anual
You can use Animator.SetTimeUpdate$$anonymous$$ode to set the mode to manual. However I do not know how to use this PlayerController.Tick they mentioned. I cannot seem to find it.
Answer by tetto_green · Mar 16, 2020 at 07:51 PM
Disable Animator component and then update it via API.
animator.Update(deltaTime);
Answer by winxalex · Mar 18, 2017 at 04:38 PM
Animator.Update( deltaTime);
PlayableGraph.Evaluate(deltaTime);
delta time is newTime-currentTime (I think it was normalized)
Your answer