GetVariables
Retrieves all variables declared in the graph.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
GetVariables()
Retrieves all variables declared in the graph.
public IEnumerable<IVariable> GetVariables()
Returns
Type | Description |
|---|---|
| IEnumerable<IVariable> | An |
Remarks
Use this method to enumerate all IVariables declared in the graph. This list does not include variable nodes that reference variables. The collection reflects the variables as declared, in their order of creation. To get the variables in a specific order, use Graph.GetVariables.
GetVariables(SortMethod)
Retrieves all variables declared in the graph in a specific order using SortMethod.
public IEnumerable<IVariable> GetVariables(SortMethod sort)
Parameters
The sorting method.
Returns
Type | Description |
|---|---|
| IEnumerable<IVariable> | An |
Remarks
Use this method to enumerate all IVariables declared in the graph. This list does not include variable nodes that reference variables. The collection reflects the variables ordered using the provided SortMethod.
-
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.