IndexOutOfRangeException: Index was outside the bounds of the array at com.unity.inputsystem@1.2.0/InputSystem/Editor/AssetEditor/InputActionEditorToolbar.cs
i have no arrays in my code and I started getting this error:
IndexOutOfRangeException: Index was outside the bounds of the array.
Library/PackageCache/com.unity.inputsystem@1.2.0/InputSystem/Editor/AssetEditor/InputActionEditorToolbar.cs:32)
UnityEngine.InputSystem.Editor.InputActionEditorWindow.OnGUI () (at Library/PackageCache/com.unity.inputsystem@1.2.0/InputSystem/Editor/AssetEditor/InputActionEditorWindow.cs:636)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at :0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at :0)
UnityEditor.DockArea.OldOnGUI () (at :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.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
It's good that you read the very first line of an error message. Continue reading and you will discover that exception happens at: Library/PackageCache/com.unity.inputsystem@1.2.0/InputSystem/Editor/AssetEditor/InputActionEditorToolbar.cs
Not your code. Something broke inside AssetEditor/InputActionEditorToolbar.cs
, restart unity - if still happens - ignore.
Your answer
