When adding a translation text for another language, I often encounter this error.
The path where I most often meet - Game > Console Settings > Text

ArgumentException: Getting control 7's position in a group with only 7 controls when doing repaint
Aborting
UnityEngine.GUILayoutGroup.GetNext () (at <2500dd078a544a69b6c923861af6cd15>:0)
UnityEngine.GUILayoutUtility.DoGetRect (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <2500dd078a544a69b6c923861af6cd15>:0)
UnityEngine.GUILayoutUtility.GetRect (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <2500dd078a544a69b6c923861af6cd15>:0)
UnityEngine.GUILayout.DoButton (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <2500dd078a544a69b6c923861af6cd15>:0)
UnityEngine.GUILayout.Button (System.String text, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <2500dd078a544a69b6c923861af6cd15>:0)
ORKFramework.Editor.ORKEditor.CheckHelpText (System.String helpHeader, System.String helpText, System.String helpInfo) (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.ORKEditor.ShowButton2 (System.String name, System.String helpText, System.String helpInfo, UnityEngine.GUILayoutOption option) (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.ORKEditor.MicroButton2 (System.String name, System.String helpText, System.String helpInfo) (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.EditorTextAreaControl.Edit (System.String name, System.String& text, System.String helpText, System.String helpInfo, ORKFramework.Editor.BaseEditor baseEditor, System.Int32 optionType) (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.ORKEditor.TextArea (System.String name, System.String& text, ORKFramework.Editor.EditorTextAreaControl& control, System.Int32 optionType, System.String helpText, System.String helpInfo, ORKFramework.Editor.BaseEditor baseEditor) (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.BaseEditor.TextArea (System.String name, System.String& text, System.String helpText, System.String helpInfo, System.Int32 optionType) (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.EditorAutomation.Value (System.Object& value, System.Reflection.FieldInfo fieldInfo, System.Type type, ORKFramework.AttributeHelper attributes, System.String[] text, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.EditorAutomation.Value (System.Object& value, System.Reflection.FieldInfo fieldInfo, System.Type type, ORKFramework.AttributeHelper attributes, System.String[] text, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.EditorAutomation.Field (System.Reflection.FieldInfo fieldInfo, ORKFramework.AttributeHelper attributes, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.EditorAutomation.Automate (System.Reflection.FieldInfo fieldInfo, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor, System.Boolean ignoreHide, ORKFramework.AttributeHelper attributes) (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.EditorAutomation.Automate (ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.EditorAutomation.Value (System.Object& value, System.Reflection.FieldInfo fieldInfo, System.Type type, ORKFramework.AttributeHelper attributes, System.String[] text, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.EditorAutomation.Field (System.Reflection.FieldInfo fieldInfo, ORKFramework.AttributeHelper attributes, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.EditorAutomation.Automate (System.Reflection.FieldInfo fieldInfo, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor, System.Boolean ignoreHide, ORKFramework.AttributeHelper attributes) (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.EditorAutomation.Automate (ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.ConsoleSettingsTab.ShowSettings () (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.ConsoleSettingsTab.ShowTab () (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.ORKEditorSection.ShowTab () (at <67e1246842ea4c6da39b289f61e92c33>:0)
ORKFramework.Editor.ORKEditorWindow.OnGUI () (at <67e1246842ea4c6da39b289f61e92c33>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <67055f1be3654e2a987254d5437ee5b8>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <67055f1be3654e2a987254d5437ee5b8>:0)
UnityEditor.DockArea.OldOnGUI () (at <67055f1be3654e2a987254d5437ee5b8>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at :0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at :0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at :0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at :0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at :0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at :0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at :0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at :0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at :0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at :0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at :0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at :0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at :0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <2500dd078a544a69b6c923861af6cd15>:0)

  • Hm, how are you adding the text (e.g. via the 'Paste' button or by editing the text) and when is the error thrown?
    Also, which Unity version are you using?
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • I am using version 2020.1.6f1
    I use the "Copy" button to insert text and then edit the text itself if necessary.
    The error appears after clicking the "Copy" button.

    But the error does not always pop up. It seems not critical, but every time it is a little inconvenient to clean the console)
  • I'll look out for it, but so far this didn't happen on my end. How many languages do you have in your project and for which (ID/index) are you doing this?
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • There are two languages in my project - English and Russian.
    https://picua.org/image/V4gFZm
Sign In or Register to comment.