- Home /
AnimatorOverrideController problem
Hi everybody,
I'm using AnimatorOverrideController in order to change some clips in my animator, but when I do this the animator is automatically reset, so the Idle animation plays instead of keeping the current one. I tried to save the current animation hash before override and force play after but it stills show the Idle animation for 1 or 2 frames...
Does anyone know a solution about that ? I'm on a free version I can't use a second layer with sync option :-/
Answer by Ben_SEM · Jul 02, 2015 at 07:53 PM
Late to the party, but take a look at this thread:
http://forum.unity3d.com/threads/swapping-override-clips-at-runtime.298557/
As far as I can tell you need to force an update of the animator after restoring the state.
Note that I have been trying this myself on 5.1.1 and restoring the state doesn't seem to be working anymore (the Animator seems to be in a bad state after changing the clips in the override, reporting 0 layers and 0 parameters). If anybody knows what's going on, I'm interested.
Edit: problem solved in the thread referenced above. Animator needs to be spun once before setting back the saved state.
Your answer
Follow this Question
Related Questions
Enemy AI copies using using same animations problem. 0 Answers
Preview overridden and ovverriding animation at once 0 Answers
Can animation clips be swapped out of the animator override controller in runtime? 1 Answer
Animator override script is not entirely read 0 Answers
Parent animator controller overrides child's animations 1 Answer