Exporting a 2D sprite animation from a 3D package
Drawing animated 2D sprites can be a challenge. Some artists create their characters in a 3D package and export them as 2D sprites to make the animation process easier. In this first recipe, we will create such a character and export it's animation as a sprite sheet.
Getting ready
Before we start, you need to have an animated model in your chosen 3D package (we are using Blender). You can also download the provided example; open the project in Unity; go to the Chapter 03 2D and user interface animation\Recipe 01 Exporting a 2d sprite animation from a 3d package
folder. You will find a scene called Example.unity
there, with an animated coin sprite. In the Animation
directory, you can find exported frames and a sprite sheet containing them. You can also find a *.blend
file with the coin model; set to render out the animation.
How to do it...
To export a 2D sprite animation from a 3D package and import it into Unity, follow these steps:
- Create an...