Closed hermer29 closed 2 months ago
I "solved" this by removing the BeginVertical/EndVertical calls, and I can't seem to notice any difference in the inspector.
I "solved" this by removing the BeginVertical/EndVertical calls, and I can't seem to notice any difference in the inspector.
You're welcome to make a Pull Request 🙂
Thanks for the report! Please try v1.0.7
Describe the bug
StateEditor.cs 40 line causing "ArgumentException: Getting control 1's position in a group with only 1 controls when doing repaint Aborting UnityEngine.GUILayoutGroup.GetNext () (at <82a3a4e0a0a94de5afddd345f6cf50d1>:0) UnityEngine.GUILayoutUtility.BeginLayoutGroup (UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options, System.Type layoutType) (at <82a3a4e0a0a94de5afddd345f6cf50d1>:0) UnityEditor.EditorGUILayout.BeginVertical (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at:0)
UnityEditor.EditorGUILayout.BeginVertical (UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at :0)
StatefulUI.Editor.ReferenceInspectors.StateEditor.OnGUI (UnityEngine.Rect rect, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at Assets/Plugins/StatefulUI/Editor/ReferenceInspectors/StateEditor.cs:40)"
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Desktop (please complete the following information):