Animating Sprites in Unity

Eric Veciana
Sep 28, 2022

--

Objective: We will learn how to add animation to our sprites

To add animation to our sprites, first click on your game object in the hierarchy. Then, in the windows tab, select “Animation.” You can drag this window beside your console window. Let’s go into the animation window, and it’ll ask you to create an animation clip.

Create a new folder named “Animation” and save your animation here. Best practice suggests adding an “_anim” after the name so it can be easily accessible later. This will add a controller and animator into your Animations folder.

Then, open the sprite folder and drag all the sprites into the animation window.

We now have animation on our sprite!

If you want to change the speed of the animation, go to the “Animator,” and adjust the speed as needed.

--

--

Eric Veciana

As a Unity and C# developer with a background in nursing, I'm a creative problem-solver with a passion for creating games and other interactive experiences.