I am working on Unity + Augmented reality. I want to show some "animated .gif" file on specific location on Marker detection event. I manage all but, I wanna display .gif animation at specific location on Android screen. But I think
Unity does not support .gif
and
Android does not support VideoTexture.
Unity not support Gif.
You have 2 options:
Save individual frames and make an array of textures.
var frames : Texture[]; var framesPerSecond = 10;
function Update() { var index : int = (Time.time * framesPerSecond) % frames.Length; renderer.material.mainTexture = frames[index]; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With