Search Issue Tracker
Fixed in 2017.1.X
Votes
0
Found in
2017.1.0a6
Issue ID
896428
Regression
No
IndexOutOfRangeException when multi-selecting a mix of sprite atlases
"IndexOutOfRangeException: Array index is out of range." when selecting a mix of packed and empty sprite atlases
1. Open attached project
2. Hold down CTRL (or CMD for OSX) and left-click on both atlases
"IndexOutOfRangeException: Array index is out of range." will show in the console.
Exception does not show if both atlases are packed, or if both are empty.
Tested on: 2017.1.0a6, a5
IndexOutOfRangeException: Array index is out of range.
UnityEditor.U2D.SpriteAtlasInspector.OnPreviewGUI (Rect r, UnityEngine.GUIStyle background) (at C:/Work/Trunk/Unity/Editor/Mono/2D/SpriteAtlas/SpriteAtlasInspector.cs:414)
UnityEditor.Editor.OnInteractivePreviewGUI (Rect r, UnityEngine.GUIStyle background) (at C:/Work/Trunk/Unity/artifacts/generated/common/editor/EditorBindings.gen.cs:356)
UnityEditor.ObjectPreview.DrawPreview (IPreviewable defaultPreview, Rect previewArea, UnityEngine.Object[] targets) (at C:/Work/Trunk/Unity/Editor/Mono/Inspector/Editor.cs:204)
UnityEditor.Editor.DrawPreview (Rect previewArea) (at C:/Work/Trunk/Unity/Editor/Mono/Inspector/Editor.cs:522)
UnityEditor.InspectorWindow.DrawPreviewAndLabels () (at C:/Work/Trunk/Unity/Editor/Mono/Inspector/InspectorWindow.cs:755)
UnityEditor.InspectorWindow.OnGUI () (at C:/Work/Trunk/Unity/Editor/Mono/Inspector/InspectorWindow.cs:395)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “FocusController has unprocessed focus events.” warnings are thrown after adding iOS, tvOS or visionOS Build Profiles
- Holes and different colors appear on default Tree Materials after applying them to the Tree GameObject and undoing changes
- Error indicating that the Text Asset Importer hasn't been disposed properly is logged when switching Importer Type in a Focused Inspector
- Documentation installation shows "Install failed: Validation Failed" when installing Android Build Support module
- Error indicating that the Package Manifest Importer hasn't been disposed properly is logged when switching Importer Type in a Focused Inspector
Add comment