TextureSwap Animator

by PsychicParrot.

Description
Attach it to a GUITexture, feed it a bunch of materials and it will cycle through them. I don't recommend this method, since using a texture atlas is more memory efficient.. but it's fine for simple GUI animations or for getting things up and running quickly.

usage
Save the file below as "autoTextureSwappingGUITexture.cs"

Attach to GUITexture.

Add materials using the editor (put them into the materials list)

Watch as they cycle!

If you need to adjust the speed, change the changeInterval declaration (here it is shown as 0.33f).