Creating a frame-by-frame sprite animation with the Animation View
This recipe shows how to use the Animation View to create sprite animations from previously rendered (or hand drawn) frames.
Getting ready
To create a frame by frame sprite animation in Unity, you should first draw or render out the animation frames from a 3D package, combine them into a sprite sheet, and import the sprite sheet into Unity (see the Exporting a 2D sprite animation from a 3D package recipe). You can also download the provided example Unity project and go to Chapter 03 2D and user interface animation\Recipe 02 Creating a frame by frame sprite animation with the animation view
directory. You will find a scene called Example.unity
there, with a Coin
game object that has been already animated. You can select it and go to Window
| Animation
to see how the animation was prepared.
How to do it...
To create a frame by frame sprite animation in Unity, follow these steps:
- Select your sprite sheet asset in the
Project
View...