Animating Sprites in Unity

To avoid having our in game sprites looking boring and static, Unity allows us to easily animate them.

We can do this through the Animation window —

Locating, opening and docking the Animation window

With the GameObject we want to animate selected, we can create a new animation from the animation window. Find or create an appropriate location within your project’s file structure for the animation and give it a name.

Create new animation files

This process will automatically place an Animator component on the selected GameObject and link it to your newly created animation file.

Creating the animation effect

With all the links and components in place, we can hit ‘Record’ in the animation window and drag in the sprite files that make up our animation effect. The speed of the animation can be controlled by adjusting the ‘Samples’ field.

Ooooh… flashy

This is a very basic implementation of the Unity Animation system. There are many more features to it which I’m sure I’ll get to in a later article.

--

--

--

A UK based Unity Developer with a passion for gaming and coding

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

Recommended from Medium

A python Tool for OSCP preparation…

Product Engineering & Technical Debt -A Resource Perspective

Sumvit — Product Economy & Technical Debt — A Resource Perspective.

Generating More Difficult Mazes

Goodbye Jenkins (Part 2): Give Flight to your CD with Drone Control

What is AWS S3 Intelligent-Tiering?

Review: My Three(3) significant protocol features of OptionRoom.

My git story

AI DevOps: Machine Learning in DevOps

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
Les Street

Les Street

A UK based Unity Developer with a passion for gaming and coding

More from Medium

A Simple Shop System for a Unity 2D Game — Part 2: UI Mechanics

Adding another powerup — Shields

Ease Of Building UI Elements In Unity

Using the Layered Lit Shaders to mix Texture Maps in Unity3D