AnimatorTransitionBase
Base class for animator transitions. Transitions define when and how the state machine switches from one state to another.
Read time 4 minutesLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEditor.Animations
- Assembly: UnityEditor
- Inherits from: Object
public class AnimatorTransitionBase : Object
Remarks
A transition happens when all its conditions are met.
Properties
Property | Description |
|---|---|
| conditions | AnimatorCondition conditions that need to be met for a transition to happen. |
| destinationState | The destination state of the transition. |
| destinationStateMachine | The destination state machine of the transition. |
| isExit | Is the transition destination the exit of the current state machine. |
| mute | Mutes the transition. The transition will never occur. |
| solo | Mutes all other transitions in the source state. |
Methods
Method | Description |
|---|---|
| AddCondition | Utility function to add a condition to a transition. |
| RemoveCondition | Utility function to remove a condition from the transition. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |