I keep getting the following error message when selecting items in the editor.
IndexOutOfRangeException: Array index is out of range.
UnityEditor.TextureInspector.RenderStaticPreview (System.String assetPath, UnityEngine.Object[ ] subAssets, Int32 width, Int32 height) (at C:/buildslave/unity/build/Editor/Mono/Inspector/TextureInspector.cs:575)
UnityEditor.AssetPreviewUpdater.CreatePreviewForAsset (UnityEngine.Object obj, UnityEngine.Object[ ] subAssets, System.String assetPath) (at C:/buildslave/unity/build/Editor/Mono/AssetPreviewUpdater.cs:33)
UnityEngine.GUIUtility: ProcessEvent(Int32, IntPtr)
It doesn’t appear to be related to any of my code, because it happens when I select different items in the Project view.
It doesn’t stop my game from playing, but it is driving me crazy!!!
Does anyone know what is causing this or how to fix it?