RemoveStateMachineTransition(AnimatorStateMachine, AnimatorTransition)
Utility function to remove an outgoing transition from source state machine.
Read time 1 minuteLast updated 18 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Animations
- Assembly: UnityEditor
public bool RemoveStateMachineTransition(AnimatorStateMachine sourceStateMachine, AnimatorTransition transition)
Parameters
The source state machine.
The transition to remove.
Returns
Type | Description |
|---|---|
| bool |
Remarks
If the transition is a sub asset of the state machine, it will be deleted. This function pushes an Undo operation.