AddEntryTransition
Utility function to add an incoming transition to the exit of it's parent state machine.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Animations
- Assembly: UnityEditor.CoreModule
AddEntryTransition(AnimatorState)
Utility function to add an incoming transition to the exit of it's parent state machine.
public AnimatorTransition AddEntryTransition(AnimatorState destinationState)
Parameters
The destination AnimatorState state.
Returns
Type | Description |
|---|---|
| AnimatorTransition |
Remarks
The transition asset that is created is added as a sub asset of the state.
An example showing usage of this API can be found at the AnimatorController page.
AddEntryTransition(AnimatorStateMachine)
Utility function to add an incoming transition to the exit of it's parent state machine.
public AnimatorTransition AddEntryTransition(AnimatorStateMachine destinationStateMachine)
Parameters
The destination AnimatorStateMachine state machine.
Returns
Type | Description |
|---|---|
| AnimatorTransition |
Remarks
The transition asset that is created is added as a sub asset of the state.
An example showing usage of this API can be found at the AnimatorController page.