AddStateMachineExitTransition(AnimatorStateMachine)
Utility function to add an outgoing transition from the source state machine to the exit of it's parent state machine.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Animations
- Assembly: UnityEditor
public AnimatorTransition AddStateMachineExitTransition(AnimatorStateMachine sourceStateMachine)
Parameters
The source state machine.
Returns
Type | Description |
|---|---|
| AnimatorTransition |
Remarks
The transition asset that is created is added as a sub asset of the state. This function pushes an Undo operation.