Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssetPath and AssetFolderPath is broken in inspectors - works fine in editor windows #184

Open
TheXRMonk opened this issue Jan 27, 2022 · 1 comment

Comments

@TheXRMonk
Copy link

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&)
@TheXRMonk
Copy link
Author

Update: Still happening in latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant