0
Pending Review

Select on Enum doesn't work with the RuntimePlatform enum

Ex-Crow 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 1

Scripting API entry for it: https://docs.unity3d.com/ScriptReference/RuntimePlatform.html

[Warning] Failed to define SelectOnEnum#8da8c...:
System.ArgumentException: Duplicate input for '%MetroPlayerX86' in Bolt.SelectOnEnum.
at Bolt.Unit.EnsureUniqueInput (System.String key) [0x0002a] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Runtime\Unit.cs:269
at Bolt.Unit.ValueInput (System.Type type, System.String key) [0x00000] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Runtime\Unit.cs:315
at Bolt.Unit.ValueInput[T] (System.String key) [0x00000] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Runtime\Unit.cs:323
at Bolt.SelectOnEnum.Definition () [0x00070] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Runtime\Framework\Control\SelectOnEnum.cs:54
at Bolt.Unit.Define () [0x00015] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Runtime\Unit.cs:149
Unit.Define() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Runtime/Unit.cs:158

UnitWidget`1.DrawSettings() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Editor/Units/UnitWidget.cs:821

UnitWidget`1.DrawForeground() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Editor/Units/UnitWidget.cs:751

Canvas`1.DrawWidgetsForeground() C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Graphs/Editor/Canvases/Canvas.cs:1464

Canvas`1.OnGUI() C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Graphs/Editor/Canvases/Canvas.cs:276

GraphWindow.OnGUI() C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Graphs/Editor/Windows/GraphWindow.cs:621

Bolt Version:
1.4.10
Unity Version:
2019.3.1f1
Platform(s):
PC
Scripting Backend:
IL2CPP
.NET Version (API Compatibility Level):
.NET 4.x
GFI
Pending Review

Hi TowerCrow, 

Thanks for the report, will investigate. Sounds like multiple enum values have a similar name, and if Bolt strips the special characters, it might cause ambiguity.