This video will show you how to animated UI just like 2d Animation.
1: You need 2d sprite animation, i will take from "Pixel Adventure 2" on itch.io
2: The code will loop the sprite animation you referentce.
3: Create a UI image to run animation and 2 button to play and stop animation on the image.
4: Pull the script to UI image, then reference the image and the sprite to "inspector script"
5: Now you can click play and you can play or stop the animation. You also can control speech of animation.
You can see more detail here:
[ Ссылка ]
Project on Github:
[ Ссылка ]
Hope this can help you.
![](https://i.ytimg.com/vi/qoSmRNikDKY/maxresdefault.jpg)