0
Pending Review

Error when entering a number for function parameter default value

Reality.Stop() 7 months ago updated by Lazlo Bonin (Lead Developer) 7 months ago 4

In this case, this happens with '-' or with '1'.  The port is unconnected.

Bolt Version:
Bolt 2a10
Unity Version:
2019.2.0f1
Platform(s):
Windows
Scripting Backend:
Mono
.NET Version (API Compatibility Level):
.NET 4.x
Bolt 2 GFI
Inspector block accessor mismatch.
Started PlanetGenerator (BoltClass).Generate#b63954ce#1898188800.parameterDefinitions.0, ended PlanetGenerator (BoltClass).Generate#b63954ce#1898188800.parameterDefinitions.
UnityEngine.Debug:LogWarning(Object)
Ludiq.Inspector:EndBlock(Accessor) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Inspector.cs:794)
Ludiq.Inspector:EndBlock() (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Inspector.cs:779)
Ludiq.Inspector:DrawField(Rect, GUIStyle) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Inspector.cs:518)
Ludiq.ReflectedEditor:OnMemberGUI(Inspector, Rect) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Special/ReflectedEditor.cs:198)
Ludiq.ReflectedEditor:OnFooterGUI(Rect) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Special/ReflectedEditor.cs:176)
Ludiq.Bolt.GraphEditor:OnFooterFieldsGUI(Rect) (at Assets/Ludiq/Bolt.Core/Editor/Inspection/GraphEditor.cs:128)
Ludiq.Bolt.FlowGraphEditor:OnFooterFieldsGUI(Rect) (at Assets/Ludiq/Bolt.Flow/Editor/FlowGraphEditor.cs:67)
Ludiq.Bolt.GraphEditor:OnFooterGUI(Rect) (at Assets/Ludiq/Bolt.Core/Editor/Inspection/GraphEditor.cs:123)
Ludiq.Bolt.FlowGraphEditor:OnFooterGUI(Rect) (at Assets/Ludiq/Bolt.Flow/Editor/FlowGraphEditor.cs:50)
Ludiq.Editor:OnControlGUI(Rect) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Editor.cs:242)
Ludiq.Inspector:DrawControl(Rect) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Inspector.cs:456)
Ludiq.Inspector:DrawControlLayout(Single) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Inspector.cs:858)
Ludiq.Bolt.ExplorerWindow:_OnGUI() (at Assets/Ludiq/Bolt.Core/Editor/Exploration/ExplorerWindow.cs:518)
Ludiq.LudiqEditorWindow:OnGUI() (at Assets/Ludiq/Ludiq.Core/Editor/Windows/LudiqEditorWindow.cs:140)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Inspector block accessor mismatch.
Started PlanetGenerator (BoltClass).Generate#b63954ce#1898188800.parameterDefinitions, ended PlanetGenerator (BoltClass).Generate#b63954ce#1898188800.
UnityEngine.Debug:LogWarning(Object)
Ludiq.Inspector:EndBlock(Accessor) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Inspector.cs:794)
Ludiq.Inspector:EndBlock() (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Inspector.cs:779)
Ludiq.Inspector:DrawControl(Rect) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Inspector.cs:458)
Ludiq.Inspector:DrawControlLayout(Single) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Inspector.cs:858)
Ludiq.Bolt.ExplorerWindow:_OnGUI() (at Assets/Ludiq/Bolt.Core/Editor/Exploration/ExplorerWindow.cs:518)
Ludiq.LudiqEditorWindow:OnGUI() (at Assets/Ludiq/Ludiq.Core/Editor/Windows/LudiqEditorWindow.cs:140)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

It does accept the value, (if you select off of the function and then reselect it), but code gen does not.


Note that the call uses zero when defaulted, not the provided value.

Pending Review

Hi Reality.Stop(),

Thanks for the report and sorry for the late reply.

In the future, since you seem to be reporting bugs often, I recommend enabling Developer Mode from the Editor Preferences of Bolt. This will throw the actual errors in the console, instead of trying to recover and hide the inspector behind a warning.

Now in that case, this seems fairly easy to reproduce, so I'll give it a go on my end.