Method SetVariable
SetVariable(string, SlotRef)
Registers a named variable and binds it to a slot output.
public void SetVariable(string varName, SlotRef slotRef)
Parameters
varNamestringThe unique variable name.
slotRefSlotRefThe 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.