Animating Sprites in Unity
Animating sprites in Unity is very easy using the animation window.
To open the Animation Window:
- Navigate to the window drop down menu at the top of the screen
- Find the animation tab in the drop down menu
- Select animation to open the animation window
- You can then dock the animation window next to the game view
Make sure you have your sprite in the hierarchy
Now select the red dot to start recording your animation
Navigate to your sprite asset in the assets folder and select all of the sprites animation prefabs by selecting the first sprite and then the last sprite while holding left shift
Now drag these sprites into the animation window
You can press the play button to preview the animation
Now click the red dot to end the animation recording when you are happy with the animation. You should now have an animated sprite.