unity Mecanim (动画系统-02-编辑动画)

简单的动画可以用模型在unity中直接编辑。
主要步骤如下:
(1)点击Window-> Animation->animation
(2)在Project视图animation文件夹中创建一个animation
(3)新建一个Animator Controller或者选择一个Animator Controller,将(2)中新建的animation 拖入其中。
(4)点击模型,则可以在Animation面板中点击红色线框选择要编辑的animation,在dopesheet状态下,点击Add Property,选择希望改变的属性。例如本例中选择的position。

#默认会有两个关键帧起末位置。
a. 点击红色红点,进入动画录制模式。
b. 拖动白色线到起点位置,修改起点的位置。
c. 拖动白色线到末点位置,修改末点的位置。
unity会自动在起末位置之间进行插值,完成动画的连续性。
d. 也可以在中间位置点击右键,选择添加关键帧,然后修改位置的值。
(5)将Animator Controller添加到模型的 Animator组件的Control属性中。
(6)一定要主要不要勾选 Apply root Motion.
(7)运行程序试看

你可能感兴趣的:(Unity)