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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment