GetOption(int)
Retrieves a state option using its zero-based index.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public IStateOption GetOption(int index)
Parameters
Index of the option, based on the order in which the options were declared.
Returns
Type | Description |
|---|---|
| IStateOption | The option at the specified index. |
Remarks
The index is zero-based.
Throws ArgumentOutOfRangeException when the index is out of bounds.
Examples
var firstOption = myState.GetOption(0);