Version: 2017.2

AnimatorController.SetStateEffectiveMotion

切换到手册
public void SetStateEffectiveMotion (Animations.AnimatorState state, Motion motion);
public void SetStateEffectiveMotion (Animations.AnimatorState state, Motion motion, int layerIndex);

参数

state 要设置其 Motion 的 AnimatorState。
motion 要设置的 Motion。
layerIndex 要设置 Motion 的层。

描述

设置 AnimatorState 的有效 Motion。Motion 或者存储在 AnimatorStateMachine 中,或者存储在 AnimatorLayer 的重载中。使用此函数可设置有效使用的 Motion。