- Home /
Mecanim animation gets stuck on the first frame
So I just migrated my project to Unity 5 and firstly it went fine. When I started Unity next time ALL animations in ALL models just stopped working. I don't mean at all... I can see them doing well in the preview mode, but when I start the game, my characters get the initial pose and do nothing. When I change parameter "speed" I see the animation blends between two states (movement is a blend tree), but none of the animation plays it just blends the poses. When I check the controller in runtime I see this progressbar doing nothing like on the screenshot below.
I tried to create new controller and attached it to the model itself without any scripts, but it still does the same thing. I can only see the animations in the preview mode. Re-importing models, restarting Unity doesn't help either.
When I changed animation type to "Legacy" it started working (it was animating the first clip in runtime) but "Generic" or "Humanoid" doesn't work at all.
Maybe I missed something about Unity 5 animations? But it was doing well while the first launch...
Please, help. I can't release a game update without animations :(
Answer by Eihiko · Sep 23, 2015 at 11:34 AM
I had this same problem and found a solution for myself. Somewhere in the process of upgrading to Unity 5.2, my Time Scale was set to 0. Going to Edit > Project Settings > Time and setting it back to 1 fixed my problem.
Thanks a lot for the answer. Everything was fine with timescale. I figured out the problem, that was with the $$anonymous$$$$anonymous$$D4$$anonymous$$ecanim asset I used. So it just was incompatible with unity 5
Hey nice catch, thanks for this input! I'm having the same issue since 5.2 upgrade, and wasn't sure where to begin looking for the problem.
Was facing the same problem when I upgraded my project to Unity 2017.3. But thanks to your solution, it is fixed now.
Answer by mountblanc · Oct 12, 2016 at 04:15 PM
@Eihiko Thanks for the solution! I had the same problem but not after any update what so ever. This morning suddenly all animations didn't work anymore. I didn't come near the project settings so very strange indeed! Last evening all was ok this morning it was not. Suddenly the Project Settings >Time was set to zero!
I would not have looked there if it wasn't for this post!
Your answer
Follow this Question
Related Questions
I can't setting at once ModelImporter.sourceAvatar in script. 1 Answer
Manipulating an animation towards a target object (ie. The hand and arm lean towards the target) 1 Answer
Issue with mecanim playing an animation using setbool 1 Answer
Mecanim Example Scenes import warnings. 0 Answers
Animation depending on the Int value 0 Answers