Animating Sprites in Unity
Unity has a built-in animation system that allows the developer to create animations very easy
If you have all the animation sprites:
- Place one sprite in hierarchy and select it
- Go to Window/Animation/Animation (shortcut: Ctrl+6)
- Click on create
- Enter a name for the new animation

- In the new Animation window, drag and drop the animation sprites
- Press the record (red) button
- Press play two times
- Press record button again to exit record mode
This way Unity has created an animation (cyan triangle) and an Animator controller

An Animator controller controls the logic of one or many animations
When double click on Animator controller, the following is displayed

Entry is the starting point in the Animator window
Right now, when the game starts, the animation in the orange box will be activated in a loop

If you don’t want the animation to loop, select it from project view and uncheck the Loop time option
