Interface IVariableNode
Interface for a variable node, which is a specialized node that references a IVariable defined in the graph.
Inherited Members
Namespace: Unity.GraphToolkit.Editor
Assembly: Unity.GraphToolkit.Editor.dll
Syntax
public interface IVariableNode : INode
Remarks
Variable nodes represent a reference to a declared IVariable in the graph. They are distinct from IVariables, which are declarations displayed as capsules in the graph’s Blackboard. You can drag and drop a IVariable from the Blackboard into the graph canvas to create a variable node. The variable node is an instance of the declared IVariable and appears in the graph.
Properties
variable
Retrieves the IVariable associated with the node.
Declaration
IVariable variable { get; }
Property Value
Type | Description |
---|---|
IVariable |
Remarks
This property returns the variable that this node references. The variable defines the node’s data type and determines the port behavior. The returned variable is declared in the graph's Blackboard and shared across all variable nodes that reference it.