Version: 2017.2

AnimatorController.GetStateEffectiveBehaviours

切换到手册
public StateMachineBehaviour[] GetStateEffectiveBehaviours (Animations.AnimatorState state, int layerIndex);

参数

state 要获取其 Behaviour 列表的 AnimatorState。
layerIndex 所查询的层。

描述

获取 AnimatorState 的有效状态机行为列表。行为或者存储在 AnimatorStateMachine 中,或者存储在 AnimatorLayer 的重载中。使用此函数可获取有效使用的 Behaviour 列表。