UtilityKit icon indicating copy to clipboard operation
UtilityKit copied to clipboard

SpriteAnimator: IndexOutOfRangeException when clicking items in the Animations list

Open hypnotica opened this issue 7 years ago • 0 comments

Weirdly, after clicking one of the items and getting the error, you can traverse the list using the arrow keys.

IndexOutOfRangeException: Array index is out of range. Prime31.SpriteAnimatorEditor.selectAnimationAtIndex (Int32 selectedIndex) (at Assets/UtilityKit/Editor/SpriteAnimatorEditor.cs:317) Prime31.SpriteAnimatorEditor.<OnEnable>m__5 (UnityEditorInternal.ReorderableList list) (at Assets/UtilityKit/Editor/SpriteAnimatorEditor.cs:272) UnityEditorInternal.ReorderableList.DoDraggingAndSelection (Rect listRect) (at C:/buildslave/unity/build/Editor/Mono/GUI/ReorderableList.cs:762) UnityEditorInternal.ReorderableList.DoListElements (Rect listRect) (at C:/buildslave/unity/build/Editor/Mono/GUI/ReorderableList.cs:588) UnityEditorInternal.ReorderableList.DoLayoutList () (at C:/buildslave/unity/build/Editor/Mono/GUI/ReorderableList.cs:389) Prime31.SpriteAnimatorEditor.OnInspectorGUI () (at Assets/UtilityKit/Editor/SpriteAnimatorEditor.cs:155) UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor[] editors, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1240) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Additionally, removing all the items from the list will cause other errors seemingly related to the index of the Animations index being out of bounds.

hypnotica avatar Jan 05 '18 20:01 hypnotica