Untick 'Apply Root Animation'

Hi all

I’m using Unity 2017.3.0f3 and my animations were working in the animator preview but not in my game.
Once I unticked ‘Apply Root Animation’ under Inspector->Enemy->Animator (and then applied to my prefab) it worked as expected when in the game.

I don’t know why, and normally don’t like posting a “solution” if I don’t know the reason behind it, but this had my stumped.

If anyone knows why I’d love to know.

Thank you.

2 Likes

Thanks for that! no wonder my animation wasn’t properly working

Thank you so much, I was struggling trying to figure out what is wrong!

I found that from Unity Documentation

Apply Root Motion - > Should we control the character’s position and rotation from the animation itself or from script.

So, we check it only if we want to change the position and rotation of the gameObject by code

The link
https://docs.unity3d.com/Manual/class-Animator.html

That’s great, thank you for the explanation.

Privacy & Terms