GetTransitions(IState, IState)
Retrieves the transitions that connect one state to another.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public IEnumerable<ITransition> GetTransitions(IState fromState, IState toState)
Parameters
Returns
Type | Description |
|---|---|
| IEnumerable<ITransition> | An |
Remarks
This is the state machine equivalent of retrieving the wire between two ports. Only transitions that leave and enter are returned; the opposite direction is not included. To enumerate every transition on a single state, use IState.GetIncomingTransitions() and IState.GetOutgoingTransitions().
fromStatetoState