Table of Contents

Method SetVariable

Namespace
Pinwheel.Vista.Graph
Assembly
Pinwheel.Vista.Runtime.dll

SetVariable(string, SlotRef)

Registers a named variable and binds it to a slot output.

public void SetVariable(string varName, SlotRef slotRef)

Parameters

varName string

The unique variable name.

slotRef SlotRef

The slot whose output should become the value source for the variable.

Remarks

Variable outputs are pinned to int.MaxValue in the data pool so they remain available to later Get Variable lookups regardless of normal downstream reference counts.

Exceptions

ArgumentException

Thrown when the variable name is empty or already registered in this context.