StatefulUI
StatefulUI copied to clipboard
StateEditor.cs 40 line causing "ArgumentException: Getting control 1's position..."
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
To Reproduce Steps to reproduce the behavior:
- Go to StatefulComponent inspector view
- Open state editor
- Scroll down to make top of the field is not visible
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Desktop (please complete the following information):
- OS: Windows 10
- Package Version 1.0.1
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