GetVariables
Retrieves all variables declared in the state machine.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
GetVariables()
Retrieves all variables declared in the state machine.
public IEnumerable<IVariable> GetVariables()
Returns
Type | Description |
|---|---|
| IEnumerable<IVariable> | An |
Remarks
The collection reflects the variables as declared, in their order of creation. To get the variables in a specific order, use StateMachine.GetVariables.
GetVariables(SortMethod)
Retrieves all variables declared in the state machine in a specific order using SortMethod.
public IEnumerable<IVariable> GetVariables(SortMethod sort)
Parameters
The sorting method.
Returns
Type | Description |
|---|---|
| IEnumerable<IVariable> | An |
Remarks
-
The SortMethod.Creation option returns variables in their order of creation.
-
The SortMethod.Display option returns variables in the order they are displayed in the blackboard.