AnimatorStateMachine.AddStateMachineBehaviour

Switch to Manual
public StateMachineBehaviour AddStateMachineBehaviour (Type stateMachineBehaviourType);

Description

向 AnimatorStateMachine 添加类型为 stateMachineBehaviourType 的状态机行为类。C# 用户可以使用通用版本。

Note that there is no RemoveStateMachineBehaviour(), to remove a state machine behaviour, use Object.Destroy.


public T AddStateMachineBehaviour ();

Description

通用版本。有关更多详细信息,请参阅Generic Functions页面。