Search Issue Tracker

Fixed in 2017.3.0f3

Fixed in 2017.1.X, 2017.2.X

Votes

0

Found in

2017.3.0a3

Issue ID

937126

Regression

Yes

IndexOutOfRangeException when adjusting sprite's compression quality

Inspector Framework

-

IndexOutOfRangeException when adjusting sprite's compression quality

1. In Assets, right click > Create > Sprites > Square (choice of shape is irrelevant)
2. Click on the created sprite
3. In Inspector, scroll down to Compression, and change it, even to the same value as before, then APPLY
4. Move the mouse cursor out of Inspector, into Assets

Expected: No error
Observed: IndexOutOfRangeException: Array index is out of range.

Occurring on: 2017.3.0a1 - a3 (current latest trunk)
Not occurring: 2017.2.0b5 and older

IndexOutOfRangeException: Array index is out of range.
UnityEditor.TextureInspector.RenderStaticPreview (System.String assetPath, UnityEngine.Object[] subAssets, Int32 width, Int32 height) (at C:/Work/Trunk/Unity/Editor/Mono/Inspector/TextureInspector.cs:575)
UnityEditor.AssetPreviewUpdater.CreatePreviewForAsset (UnityEngine.Object obj, UnityEngine.Object[] subAssets, System.String assetPath) (at C:/Work/Trunk/Unity/Editor/Mono/AssetPreviewUpdater.cs:33)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.