Search Unity

Error when navigating project view: IndexOutOfRangeException: Array index is out of range.

Discussion in 'Editor & General Support' started by godboldADX, Sep 19, 2017.

  1. godboldADX

    godboldADX

    Joined:
    Sep 1, 2017
    Posts:
    2
    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?
     
  2. godboldADX

    godboldADX

    Joined:
    Sep 1, 2017
    Posts:
    2
    So, I think I finally figured it out. I created a Square Sprite via Unity. After deleting it, I no longer see the message.