AddAnyStateTransition
Utility function to add an AnyState transition to the specified state or statemachine.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Animations
- Assembly: UnityEditor.CoreModule
AddAnyStateTransition(AnimatorState)
Utility function to add an AnyState transition to the specified state or statemachine.
public AnimatorStateTransition AddAnyStateTransition(AnimatorState destinationState)
Parameters
The destination state.
Returns
Type | Description |
|---|---|
| AnimatorStateTransition |
Remarks
The transition asset that is created is added as a sub asset of the state machine. Its important that AnyStateTransitions are added to the root state machine. AnyStateTranistions added to a sub state machine will be discarded at runtime. This function pushes an Undo operation.
AddAnyStateTransition(AnimatorStateMachine)
Utility function to add an AnyState transition to the specified state or statemachine.
public AnimatorStateTransition AddAnyStateTransition(AnimatorStateMachine destinationStateMachine)
Parameters
The destination statemachine.
Returns
Type | Description |
|---|---|
| AnimatorStateTransition |
Remarks
The transition asset that is created is added as a sub asset of the state machine. Its important that AnyStateTransitions are added to the root state machine. AnyStateTranistions added to a sub state machine will be discarded at runtime. This function pushes an Undo operation.