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

IVariable

interface in Unity.GraphToolkit.Editor

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

Description

Interface for a graph variable.

Variables are data containers that are accessible throughout a graph. You can manage variables in the Blackboard and reference them with variable nodes. A variable has a name, a data type, a kind that defines its visibility within subgraphs, and an optional default value. Use TryGetDefaultValue_1 to retrieve the default value if one exists. Variables are distinct from variable nodes. However, you can drag variables onto the graph canvas, where they are instantiated as variable nodes.

Properties

Property Description
DataType Gets the data type of the variable.
Name Gets the name of the variable.
VariableKind Gets the kind of the variable, such as Local, Input, or Output.

Public Methods

Method Description
TryGetDefaultValue Tries to retrieve the default value of the variable.