
0
Pending Review
2a10 Can't Invoke a function at editor time
Function: https://imgur.com/yDsFCyV
No errors but a couple of warnings after invoking the function at editor time. The function fully works in Play mode and can also be manually invoked in play mode, the problem is with it at editor time specifically.
Inspector block accessor mismatch.
Started Inventory (BoltComponent) [Inventory (BoltClass)].trait.4adff5fa-708d-4ac5-a4ea-96dd1490f2ac, ended Inventory (BoltComponent) [Inventory (BoltClass)].trait.
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:DrawControl(Rect, Single&) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Inspector.cs:543)
Ludiq.Bolt.BoltClassShellEditor:OnInnerGUI(Rect) (at Assets/Ludiq/Bolt.Core/Editor/Architecture/BoltClassShellEditor.cs:29)
Ludiq.Editor:OnControlGUI(Rect) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Editor.cs:222)
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.Persistent:OnGUI() (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Root/LudiqRootObjectEditor.cs:48)
Ludiq.PersistentRootEditorWrapper:OnInspectorGUI() (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/PersistentRootEditorWrapper.cs:33)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Inspector block accessor mismatch.
Started Inventory (BoltComponent) [Inventory (BoltClass)].trait, ended Inventory (BoltComponent) [Inventory (BoltClass)].
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.Persistent:OnGUI() (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Root/LudiqRootObjectEditor.cs:48)
Ludiq.PersistentRootEditorWrapper:OnInspectorGUI() (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/PersistentRootEditorWrapper.cs:33)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Bolt Version:
2.0.0a10
Unity Version:
2019.3.0f6
Platform(s):
PC
Scripting Backend:
Mono
.NET Version (API Compatibility Level):
.NET 4.x
Customer support service by UserEcho
This error appears with Developer Mode enabled:
Hi TowerCrow,
Thanks for the report.
As your inventory project seems pretty involved, I think I'll have trouble reproducing this case on my end.
Is there a more isolated case in which you could provide reproduction steps to recreate the error?
My attempts to reproduce outside the inventory project have been unsuccessful. I can, however, zip up the project and send it to you if you're interested.
I can't seem to reproduce block accessor mismatch issue anymore in the Inventory project either but I still get this one: https://i.imgur.com/eYAZhq7.png
Looks like it can't call functions that are in different classes?
So here's how to reproduce the issue:
1. Create 2 classes. One that holds the editor event and another class that holds a function the editor event will call
Test Function is completely empty, Editor Event looks like this:
2. Place both classes on an object
3. Invoke Editor Event at Editor time which results in the following error:
Thanks for the additional steps, that's starting to make sense; basically the error is when calling another function from the main editor-invoked function. I'll have a look!