AddStateMachineBehaviour
Non-generic version of this method.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Animations
- Assembly: UnityEditor
AddStateMachineBehaviour(Type)
Non-generic version of this method.
public StateMachineBehaviour AddStateMachineBehaviour(Type stateMachineBehaviourType)
Parameters
Returns
Type | Description |
|---|---|
| StateMachineBehaviour |
AddStateMachineBehaviour<T>()
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 T AddStateMachineBehaviour<T>() where T : StateMachineBehaviour
Returns
Type | Description |
|---|---|
| T | The type of state machine behaviour to add. |