GetState(int)
Retrieves a state in the state machine by its index.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public IState GetState(int index)
Parameters
The zero-based index of the state to retrieve.
Returns
Remarks
Use this method to access a state based on its creation order in the state machine. The index is zero-based and must be within range (see: StateMachine.StateCount).