Version: 2023.2

AnimatorState.AddStateMachineBehaviour

切换到手册
public T AddStateMachineBehaviour ();

返回

T The type of state machine behaviour to add.

描述

Adds a state machine behaviour class of type T to the AnimatorState. Note that there is no corresponding "Remove" method. To remove a state machine behaviour, use Object.Destroy.


public StateMachineBehaviour AddStateMachineBehaviour (Type stateMachineBehaviourType);

描述

Non-generic version of this method.