Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpriteAnimator: IndexOutOfRangeException when clicking items in the Animations list #5

Open
hypnotica opened this issue Jan 5, 2018 · 0 comments

Comments

@hypnotica
Copy link

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.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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant