AnimatorStateMachine.AddStateMachineBehaviour

Declaration

public T AddStateMachineBehaviour();

Description

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


Declaration

public StateMachineBehaviour AddStateMachineBehaviour(Type stateMachineBehaviourType);

Parameters

stateMachineBehaviourType The type of state machine behaviour class to add.

Description

A non-generic version of this method.


Did you find this page useful? Please give it a rating: