Animating sprites in Unity

Animating sprites for 2D games in Unity is easy when you know how.

The first thing to do is to open the animation window in your project.

Then, you will need to click on the game object that you want the animation to appear on. This makes it easier as Unity will automatically attach an animator component.

Once you have clicked on the game object in the hierarchy, you will need to have the animation window open. You should see an option for creating a new animation. Click that button and a window will open asking you to choose a folder and a filename for the animation.

Once you have done that you’re now ready to drag in your animations.

I already have an animation that is separated out into different images.

How do I get them into the animation window? Well, you drag them over. I would advise that you drag all of the images and not do it individually. Highlight all of your images that you want and drag them into the animation window.

Once they have been dragged in you should see some small diamonds in the window and these represent the different frames of the animation that will play. You can now press the play button and you will see the animation playing in the scene window.

Thank you for reading and come back for more useful tips in Unity.




Integration support and part-time game developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

My favorite free courses to learn Game Development for Beginners in 2022

best free Game Development Courses for Beginners

Your guide to building complete language solutions.

5 Ways to reduce debugging hours & write better software faster

2021 week 37, 10th weekly post and what I haven’t learned.

A doodle of the Brotherhood Sword from Final Fantasy X with the word ten in Chinese, Malay, and English on the left.

All the steps of compilation

🛂 Checkpoint: A Better Process for Promoting Models to Production

Search a 2D Matrix

How to Run Scrum Meetings

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Daniel Kirwan

Daniel Kirwan

Integration support and part-time game developer

More from Medium

What is Cinemachine and Timeline for Unity 2020?

High Definition Rendering Pipeline

Determining How Long Powerup Effects Should Last

Loading Scenes In Unity