Version: Unity 6.4 Alpha (6000.4)
LanguageEnglish
  • C#

Graph.GetVariable

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public Unity.GraphToolkit.Editor.IVariable GetVariable(int index);

Parameters

Parameter Description
index The index of the variable to retrieve.

Returns

IVariable The IVariable at the specified index.

Description

Retrieves a variable declared in the graph by index.

Use this method to access a specific IVariable from the list of variables declared in the graph. This list does not include variable nodes that reference variables. The index is zero-based and reflects the order in which the variables were created. The index must be within the valid range of the variable list (see: VariableCount).