ドキュメント

Unity Engine

Unity Engine

GetVariables

Retrieves all variables declared in the graph.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

GetVariables()

Retrieves all variables declared in the graph.
public IEnumerable<IVariable> GetVariables()

Returns

Type

Description

IEnumerable<IVariable>An
IEnumerable
of all IVariables declared in the graph.

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
IEnumerable
of all IVariables declared in the graph, ordered using the provided SortMethod.

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.