Skip to main content

Class VariableNode<TRef, TVar, TVal>

Generic base node that hold a value or reference to a scriptable variable.

public abstract class VariableNode<TRef, TVar, TVal> : BaseNode where TRef : BaseVariableReference<TVar, TVal> where TVar : BaseScriptableVariable<TVal>

Type Parameters​

NameTypeDescription
TRefThe reference type that encapsulates both a constant value and a variable reference, and outputs one of the two based on a selection flag.
TVarThe type of the scriptable variable that stores the runtime value.
TValThe actual data type of the value being outputted.

Inheritance​

Methods​

GetValue(NodePort)​

Return the variable refrence's value when requested.

public override object GetValue(NodePort port)

Parameters​

NameTypeDescription
portNodePort

Returns​

object — The assigned value.