Apply Root Motion

时间:2023-03-08 23:42:22
Apply Root Motion

Apply Root Motion 应用根动作:

Apply Root Motion

Should we control the character's position from the animation itself or from script.

如果我们勾选了Animator组件中的Apply Root Motion选项

角色的Transform将不能通过脚本来直接赋值,而是通过动画的运动的来改变的

如果我们不勾选

我们就可以用脚本改变角色的Tranform

如果在代码里有 OnAnimatorMove() //Tells Unity that root motion is handled by the script

这个函数,将会变成:

Apply Root Motion