How To Import, Set Up, & Animate Your Sprites In Unity

Unity is an extremely powerful engine with a huge variety of capabilities. One of those features is the Animation System. This is a very simple and very easy-to-use tool that will allow you to take a sprite sheet and turn it into a full-fledged animation within seconds!

  • If using a “Sprite Sheet” then change “Sprite Mode” to “Multiple” otherwise keep it as “Single”.
  • Now change the “Pixels Per Unit” to whatever your sprites were created as. The standard is usually 300. This is also known as “Pixels Per Inch (PPI)” or “Dots Per Inch (DPI)”.
  • Next, you will need to select a “Max Size”. This is dependant on what size of resolution your game will have but usually bigger is better since you can always scale down.
  • Lastly, if you used a sprite sheet and set your “Sprite Mode” to “Multiple”, you will need to slice the sheet into individual sprites. To do this you will be using the ‘Sprite Editor”.

[WARNING]

You may be prompted to download the 2D Sprites package which can be found in the “Package Manager”. This is fine and is needed in order to do this. Just follow the instructions and do it.

[Note]

“Automatic” attempts to auto-slice out the individual sprites by detecting the empty space around them (Assuming there is any).

Now on to the Animation!

This is surprisingly the easiest part. Open up the “Animation” window which can be found under (Window>Animation>Animation).

  • Click on this object within the hierarchy and click the “Create” button presented in the “Animation” window. Name and save the animation within your project.
  • At the top left of the “Animation” window, you will see a red circular “Record” button. Click this button.
  • Drag and drop the sprites that you are wanting to animate into the animation window. Make sure these are in the order that you want them to play.
  • End the recording
  • Now change the “Samples” setting within the “Animation” window to change the speed that your animation plays at and you're done!

Hi, my name is Adam Reed and I am a software engineer specializing in Unity and C# development. Feel free to scroll through and check out some of my work!