Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

[ERROR] New Error After Trying GIFs : Unity

Discussion in 'AR/VR (XR) Discussion' started by arkedrem, Oct 16, 2018.

  1. arkedrem

    arkedrem

    Joined:
    Oct 13, 2018
    Posts:
    20
    "IndexOutOfRangeException: Array index is out of range.
    UnityEditor.Android.AndroidBuildWindowExtension.GetBuildPlayerWindow ()
    UnityEditor.Android.AndroidBuildWindowExtension.RepaintTargetList ()
    UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:191)"

    This error message occurs when I added GIFS onto a material, then added material on a Quad.

    It builds fine but this error message occurs.
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,840
    Don't use GIFs. Use PNG for lossless compression, and JPEG for lossy compression.

    Not that I have any idea what's going on with the error above. It's just a general policy everyone should follow. :)
     
  3. arkedrem

    arkedrem

    Joined:
    Oct 13, 2018
    Posts:
    20
    Can PNGs create an animation?

    GIFs can.
     
  4. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,840
    True. That is the one valid use for GIFs in the modern world, but I didn't think that would apply in this case, because you can't just add an animated GIF to a material to get an animated texture... can you? (Could be a Unity feature I never knew about!)
     
  5. arkedrem

    arkedrem

    Joined:
    Oct 13, 2018
    Posts:
    20
    Looks like something that could be added in the future.
     
    JoeStrout likes this.