MyBox
MyBox copied to clipboard
AssetPath and AssetFolderPath is broken in inspectors - works fine in editor windows
Gives this error after choosing an asset/folder or closing the window;
InvalidOperationException: Stack empty.
System.Collections.Generic.Stack`1[T].Pop () (at <47ab72e0328040438980f9c23608e1ec>:0)
UnityEditor.PropertyDrawer.OnGUISafe (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at <13c5ad68fffb46969f1ca1df233d1e4d>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at <13c5ad68fffb46969f1ca1df233d1e4d>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at <13c5ad68fffb46969f1ca1df233d1e4d>:0)
UnityEditor.PropertyHandler.OnGUILayout (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at <13c5ad68fffb46969f1ca1df233d1e4d>:0)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at <13c5ad68fffb46969f1ca1df233d1e4d>:0)
MyBox.Internal.FoldoutAttributeHandler.Foldout (MyBox.Internal.FoldoutAttributeHandler+CacheFoldProp cache) (at Submodules/Virsabi.Core/Packages/com.virsabi/Runtime/Third Party/MyBox/Attributes/FoldoutAttribute.cs:131)
MyBox.Internal.FoldoutAttributeHandler.Body () (at Submodules/Virsabi.Core/Packages/com.virsabi/Runtime/Third Party/MyBox/Attributes/FoldoutAttribute.cs:98)
MyBox.Internal.FoldoutAttributeHandler.OnInspectorGUI () (at Submodules/Virsabi.Core/Packages/com.virsabi/Runtime/Third Party/MyBox/Attributes/FoldoutAttribute.cs:78)
MyBox.Internal.UnityObjectEditor.OnInspectorGUI () (at Submodules/Virsabi.Core/Packages/com.virsabi/Runtime/Third Party/MyBox/Tools/Internal/UnityObjectEditor.cs:34)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <6e80f6af65b64894a5fb8578a935bf61>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Update: Still happening in latest version.