Version: 2017.2
public Animations.AnimatorState AddMotion (Motion motion);
public Animations.AnimatorState AddMotion (Motion motion, int layerIndex);

参数

motion 将处于 AnimatorState 中的 Motion。
layerIndex Motion 将添加到的层。

描述

Utility 函数,用其中的运动创建一个新状态。

所创建的状态资源作为目标状态机的子资源进行添加。 此函数推动一个 Undo 操作。