Skip to content

Commit a6ab19b

Browse files
committed
update variables helper to use var Id as value input socket name
1 parent 5d33df7 commit a6ab19b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Runtime/Scripts/Interactivity/Export/Helpers/VariablesHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static GltfInteractivityExportNode SetVariable(INodeExporter exporter, in
2020
{
2121
var node = exporter.CreateNode<Variable_SetNode>();
2222
node.Configuration[Variable_SetNode.IdConfigVarIndices].Value = new int[] {id};
23-
node.ValueIn("0").SetType(TypeRestriction.LimitToType(exporter.Context.variables[id].Type));
23+
node.ValueIn(id.ToString()).SetType(TypeRestriction.LimitToType(exporter.Context.variables[id].Type));
2424
return node;
2525
}
2626

@@ -34,7 +34,7 @@ public static GltfInteractivityExportNode SetVariableStaticValue(INodeExporter e
3434

3535
node.Configuration[Variable_SetNode.IdConfigVarIndices].Value = new int[] {id};
3636

37-
node.ValueIn("0").SetValue(value).SetType(TypeRestriction.LimitToType(variableType));
37+
node.ValueIn(id.ToString()).SetValue(value).SetType(TypeRestriction.LimitToType(variableType));
3838
return node;
3939
}
4040

@@ -58,7 +58,7 @@ public static GltfInteractivityExportNode SetVariable(INodeExporter exporter, in
5858
flowIn = node.FlowIn(Variable_SetNode.IdFlowIn);
5959
flowOut = node.FlowOut(Variable_SetNode.IdFlowOut);
6060

61-
value = node.ValueIn("0").SetType(TypeRestriction.LimitToType(variableType));
61+
value = node.ValueIn(id.ToString()).SetType(TypeRestriction.LimitToType(variableType));
6262

6363
node.Configuration[Variable_SetNode.IdConfigVarIndices].Value = new int[] {id};
6464

0 commit comments

Comments
 (0)