Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetVariables

Retrieves all variables declared in the graph.
Read time 1 minuteLast updated 6 days ago

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.