Method GetRegisteredVars
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
graphGraphAssetThe graph to inspect.
varNamesList<string>The destination list that receives variable names.
varTypesList<Type>The destination list that receives slot types paired with
varNamesby 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.