Untick 'Apply Root Animation'

cud_s06_enemy_position_animation

#1

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

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


#3

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


#4

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


#5

That’s great, thank you for the explanation.