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
- [Android] Volume level of the same audio file is different on Samsung Galaxy Tab A8 between 2023.3.0b3 and 2023.3.0b4
- ‘Expected end of value’ warning occurs when a property declaration includes five or more variable references
- Tags window completely breaks and throws Exception errors when Adding a Tag to a GameObject
- Crash on BurstCompilerService::CompileAsync when entering Play mode in a specific scene
- InvalidOperationException when using Game Camera Preview in Scene window with a custom RenderGraph pass
Add comment