Interface for a transition in a StateMachine.
A transition represents the connection from a source IState to a destination IState, or a self transition anchored on a single state (in which case ITransition.FromState and ITransition.ToState are the same state, and the transition is an ISelfTransition). A transition can carry several stacked rules; enumerate ITransition.GetRules to inspect each ITransitionRule and the conditions under which the transition is taken. This interface is implemented by Unity and is not intended to be implemented by user code.
| Property | Description |
|---|---|
| FromState | The state the transition originates from. |
| ID | The globally unique identifier for this transition. |
| ToState | The state the transition goes to. This is the same state as ITransition.FromState for a self transition. |
| Method | Description |
|---|---|
| GetRules | Retrieves the rules stacked on this transition, in the order they appear. |