0
Planned

Error in Editor with Toolbar

IndieGameHustle 4 months ago in Game Creator updated by Marti (Lead Developer) 3 months ago 4

Hello I am getting this error in the editor : 

ArgumentException: Getting control 10's position in a group with only 10 controls when doing KeyUp
Aborting
UnityEngine.GUILayoutGroup.GetNext () (at <35bab3c7b0dc4999845bcfccc7758d96>:0)
UnityEngine.GUILayoutUtility.DoGetRect (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <35bab3c7b0dc4999845bcfccc7758d96>:0)
UnityEngine.GUILayoutUtility.GetRect (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <35bab3c7b0dc4999845bcfccc7758d96>:0)
UnityEngine.GUILayout.DoButton (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <35bab3c7b0dc4999845bcfccc7758d96>:0)
UnityEngine.GUILayout.Button (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <35bab3c7b0dc4999845bcfccc7758d96>:0)
GameCreator.Core.GameCreatorToolbar.PaintButton (GameCreator.Core.GameCreatorToolbar+Item item, GameCreator.Core.GameCreatorToolbar+BTN_POS position, UnityEditor.MouseCursor cursor) (at Assets/Plugins/GameCreator/Extra/Editor/GameCreatorToolbar.cs:243)


---------------------------


The error happens when I hold the "ALT " Key on the keyboard.





Unity version:
2019.3.9f1
Game Creator version:
1.1.8
Under review

I haven't been able to reproduce this. Could it be possible that restarting Unity fixes the issue? The error doesn't provide much information, and this usually means that restarting solves the problem.

+1

It may resolve it self. I dont see it in one of my other projects so I will test again and report back.

So the error only happens when I have the GC toolbar active, if I remove it, the error goes away.
This is when I am in the scene editor and I am rotating the view using Alt + Mouse Key down.

It says this : 
ArgumentException: Getting control 11's position in a group with only 11 controls when doing KeyUp
Aborting

something to do with the docking area of the ToolBar UI
It doesn't seem game breaking but error make me nervous. lol

Was happening in 2019.3 Standard and I have tested in 2019.4.1f1 HDRP SRP

Planned

Thanks! I'll check this. This usually happens with Unity's IMGUI tries to repaint the UI but something has changed between the last repaint phase. Should be fairly easy to solve once I spot the problem. Thanks!