Search Unity

Getting this error: IndexOutOfRangeException: Array index is out of range.

Discussion in 'Scripting' started by abourzach, Sep 16, 2017.

  1. abourzach

    abourzach

    Joined:
    Sep 16, 2017
    Posts:
    1
    Hi, I'm pretty new to coding and game development I am currently making my first game. I'm getting this error whenever I go into my project tab, could someone help me out and tell me what this is and help me fix it?

    IndexOutOfRangeException: Array index is out of range.
    UnityEditor.TextureInspector.RenderStaticPreview (System.String assetPath, UnityEngine.Object[] subAssets, Int32 width, Int32 height) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/TextureInspector.cs:575)
    UnityEditor.AssetPreviewUpdater.CreatePreviewForAsset (UnityEngine.Object obj, UnityEngine.Object[] subAssets, System.String assetPath) (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssetPreviewUpdater.cs:33)
     
    ootblues and shottogan like this.
  2. ootblues

    ootblues

    Joined:
    Mar 10, 2017
    Posts:
    1
    I am having the same problem. It is very random because I didn't do anything relating to textures
     
  3. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,188
    It's an editor script error. Isn't going to change your game any. Hutning them down is also sometimes difficult. I wouldn't worry about it that much.