Title is a little bit misleading, you can’t play gifs in studio. Good bye. Just kidding. Here are the steps:
- Convert the gif to a png sequence (or jpg if there is no transparency).
- Use this symbol (9.1 KB) and drag all the pngs to it.
- Assign the images to the planes. The symbol supports up to 98 frames out of the box. I don’t think you will ever need to increase this.
- Delete the frames you won’t use.
- You are done. Use
symbol.controllers.gif.elements.animation.play();
to play the gif.
The gif changes frames every 100ms. If you need it to change every 200ms, call play(1/2)
, if it’s every 300ms, call play(1/3)
, etc.