0
Pending Review

2.0.0a8 Error drawing ClassAssetEditor

Ex-Crow 8 months ago updated by Lazlo Bonin (Lead Developer) 7 months ago 2
Class Asset editor errors out after changing one variable type from a custom Class Asset specific type to a general Class Asset type. I guess Class assets don't like other Class Asset referenced inside of them?

From this type:



To this type:




Error:





ArgumentNullException: Value cannot be null.
Parameter name: exception
UnityEngine.DebugLogHandler.LogException (System.Exception exception, UnityEngine.Object context) (at C:/buildslave/unity/build/Runtime/Export/Logging/DebugLogHandler.cs:20)
UnityEngine.Logger.LogException (System.Exception exception, UnityEngine.Object context) (at C:/buildslave/unity/build/Runtime/Export/Logging/Logger.cs:144)
UnityEngine.Debug.LogException (System.Exception exception) (at C:/buildslave/unity/build/Runtime/Export/Debug/Debug.bindings.cs:149)
Ludiq.Inspector.ShieldDraw (UnityEngine.Rect position) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Inspector.cs:431)
Ludiq.Inspector.DrawControl (UnityEngine.Rect position) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Inspector.cs:445)
Ludiq.Inspector.DrawControlLayout (System.Single scrollbarTrigger) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Inspector.cs:858)
Ludiq.LudiqRootObjectEditor+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:27)
UnityEditor.UIElements.InspectorElement+c__AnonStorey1.<>m__0 () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorElement.cs:501)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
Bolt Version:
2.0.0a8
Unity Version:
2019.2.19
Platform(s):
PC
Scripting Backend:
Mono
.NET Version (API Compatibility Level):
.NET 4.x
Bolt 2

I guess I should use Class Asset types directly?

+1
Pending Review

Hi,

Not sure what the error is because actually my error handling code had an error in it.

I'll try reproducing and report back though.