teenageengineering / videolab

MIT License
737 stars 65 forks source link

Adding MIDI knob input causes error #35

Open sinewave440hz opened 4 years ago

sinewave440hz commented 4 years ago

Didn't get very far after the last issue unfortunately. First thing I tried, creating a MIDI input, gives me:

[Unity 2018.4.19f1 and latest in Assets folder from repo]

ArgumentException: Value does not fall within the expected range. UnityEditor.Graphs.Property.ConvertFromSingleValue (System.Object o) (at /Users/builduser/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Property.cs:339) UnityEditor.Graphs.Property.set_value (System.Object value) (at /Users/builduser/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Property.cs:221) UnityEditor.Graphs.Property..ctor (System.String typeString, System.String name) (at /Users/builduser/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Property.cs:175) UnityEditor.Graphs.Node.ConstructAndAddProperty (System.String serializedTypeString, System.String name) (at /Users/builduser/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Node.cs:389) UnityEditor.Graphs.Node.AddOrModifyPropertyForSlot (UnityEditor.Graphs.Slot s) (at /Users/builduser/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Node.cs:418) UnityEditor.Graphs.Node.AddSlot (UnityEditor.Graphs.Slot s, System.Int32 index) (at /Users/builduser/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Node.cs:199) UnityEditor.Graphs.Node.AddSlot (UnityEditor.Graphs.Slot s) (at /Users/builduser/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Node.cs:188) UnityEditor.Graphs.Node.AddInputSlot (System.String name, System.Type type) (at /Users/builduser/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Node.cs:170) Klak.Wiring.Patcher.Node.PopulateSlots () (at Assets/Scenes/Klak/Wiring/Editor/Patcher/Node.cs:135) Klak.Wiring.Patcher.Node.Initialize (Klak.Wiring.NodeBase runtimeInstance) (at Assets/Scenes/Klak/Wiring/Editor/Patcher/Node.cs:117) Klak.Wiring.Patcher.Node.Create (Klak.Wiring.NodeBase runtimeInstance) (at Assets/Scenes/Klak/Wiring/Editor/Patcher/Node.cs:42) Klak.Wiring.Patcher.GraphGUI.CreateMenuItemCallback (System.Object data) (at Assets/Scenes/Klak/Wiring/Editor/Patcher/GraphGUI.cs:291) UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, System.Int32 selected) (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/GenericMenu.cs:119)

Any workaround for this?

georgechond94 commented 4 years ago

@sinewave440hz see here: https://github.com/teenageengineering/videolab/issues/37#issuecomment-616827283 I had that issue too with .NET 4.x. I downgraded to .NET 3.5 and that error was gone

patchworquill commented 2 years ago

@georgechond94 saved me! Thanks for the tip. Worked like a charm.