docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IVariableNode

    Interface for a variable node, which is a specialized node that references a IVariable defined in the graph.

    Inherited Members
    INode.inputPortCount
    INode.GetInputPort(int)
    INode.GetInputPorts()
    INode.GetInputPortByName(string)
    INode.outputPortCount
    INode.GetOutputPort(int)
    INode.GetOutputPorts()
    INode.GetOutputPortByName(string)
    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)