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

Python Web Development with Flask — Flash Messages

Cross region Elasticsearch replication

Put Colour to Your Terminal Prompt

Understanding Azure Active Directory Application Registrations

Building a Flutter Web Container

FlutterForce — #Week 55

Step by step guide to add Jenkins slave nodes

Jenkins Slave

First meeting with Nodeflux’s Team

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

Setting up a Unity Project for the High Definition Render Pipeline (HDRP)

How to Build an Interactive Security Camera System in Unity

Creating Elevator in Unity — Part 3: Moving Elevator.

Tessellation in HDRP