Table of Contents

Method GetRegisteredVars

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

GetRegisteredVars(GraphAsset, List<string>, List<Type>)

Collects the graph-local variables declared by SetVariableNode nodes.

public static void GetRegisteredVars(this GraphAsset graph, List<string> varNames, List<Type> varTypes)

Parameters

graph GraphAsset

The graph to inspect.

varNames List<string>

The destination list that receives variable names.

varTypes List<Type>

The destination list that receives slot types paired with varNames by index.

Remarks

The method clears both destination lists first, then scans every SetVariableNode in the graph. Only nodes with a non-empty variable name and a valid slot type assignable to ISlot are reported.