Skip to content

Commit 3f46a77

Browse files
committed
fixed u6.3 compile error > replaced unity.guid generation with pure c#
1 parent 53081b0 commit 3f46a77

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

Editor/Scripts/Interactivity/VisualScriptingExport/UnitExporters/Flow/SelectOnFlowUnitExporter.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,7 @@ public bool InitializeInteractivityNodes(UnitExporter unitExporter)
3434
int typeIndex = 0;
3535

3636
// using VariableKind.Scene, because we already generated a unique name for the variable
37-
#if UNITY_6000_3_OR_NEWER
38-
var newGUID = UnityEngine.GUID.Generate().ToString();
39-
#else
40-
var newGUID = GUID.Generate().ToString();
41-
#endif
42-
var varIndex = unitExporter.vsExportContext.AddVariableWithIdIfNeeded($"SelectOnFlowValue_{newGUID}", null, VariableKind.Scene, typeIndex);
37+
var varIndex = unitExporter.vsExportContext.AddVariableWithIdIfNeeded($"SelectOnFlowValue_{System.Guid.NewGuid().ToString()}", null, VariableKind.Scene, typeIndex);
4338

4439
var getVar = VariablesHelpers.GetVariable(unitExporter, varIndex, out var getVarValue);
4540
getVarValue.MapToPort(unit.selection);

0 commit comments

Comments
 (0)