Simple Animation in Unity

How to create an Animation in Unity from a Spritesheet

The easiest way to animate an object from a sliced spritesheet is:
1. Select all sprites (by clicking with the mouse holding shift)
2. Drag and Drop them into the Hierarchy
3. Save animation
4. Run the game to see the animation.

The default is to loop the animation. In Project panel you can select the created animator and uncheck Loop time.

Automatically an animation controller is created as well. This is relevant for more complex animations. You will find the controller in the same place as where you saved you animation. This is an topic for another day.

Another way

Target GameObject selected > Window > Animation > Create > Save (in animations assets folder)
Target GameObject selected > Animation panel > Record button > Drag and drop all frames > Stop Record Button

--

--

--

Aspiring developer that’s self-learning Unity & C# to transition to a career with Unity. I got a passion for creating interactive experiences.

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

Recommended from Medium

Querying Big Data Residing on AWS S3 Using Glue and Athena

Animation States

Connecting Jira and Slack to Alert on SLA’s

SPEERIT wants to keep people safe but active during Covid-19

Outsourcing Software Development: Models, & Top Locations

Jira merge and beyond

Jira

Home networking 2.0

Building an engine with the Veritone Engine Toolkit

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
Tristan Engel

Tristan Engel

Aspiring developer that’s self-learning Unity & C# to transition to a career with Unity. I got a passion for creating interactive experiences.

More from Medium

A guide to setting up a cross platform input controller using the Unity Input System

Get Started Your First Mobile Top Down Shooting Game Development With Unity Visual Scripting Part 5

My journey becoming a Unity game developer: 2.5D Infinite Runner-Ledge Grab System-Pt2

Adding a homing missile powerup