StatefulUI icon indicating copy to clipboard operation
StatefulUI copied to clipboard

StateEditor.cs 40 line causing "ArgumentException: Getting control 1's position..."

Open hermer29 opened this issue 1 year ago • 2 comments

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:

  1. Go to StatefulComponent inspector view
  2. Open state editor
  3. Scroll down to make top of the field is not visible
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

Desktop (please complete the following information):

  • OS: Windows 10
  • Package Version 1.0.1

hermer29 avatar Oct 08 '23 12:10 hermer29

I "solved" this by removing the BeginVertical/EndVertical calls, and I can't seem to notice any difference in the inspector.

Niaobu avatar Nov 22 '23 11:11 Niaobu

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 🙂

dmitry-ivashenko avatar Nov 22 '23 13:11 dmitry-ivashenko

Thanks for the report! Please try v1.0.7

dmitry-ivashenko avatar Jul 31 '24 07:07 dmitry-ivashenko