[ERROR] New Error After Trying GIFs : Unity

“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.

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. :slight_smile:

Can PNGs create an animation?

GIFs can.

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!)

Looks like something that could be added in the future.

1 Like