From the course: Learning Unity 2D Sprites

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Timeline animations

Timeline animations - Unity Tutorial

From the course: Learning Unity 2D Sprites

Start my 1-month free trial

Timeline animations

- [Instructor] Now it's time for us to look into how to do some basic animation. Let's go ahead and open up our scene view. Next, we'll want to go into the Sprites folder and while holding down Shift, let's select tv-1 and tv-2. Here we'll drag these two sprites together into our scene and place the TV on top of the desk. Whenever we drag multiple sprites onto the scene, Unity will automatically ask us if we want to create a new animation. Let's call this TVAnimation. We'll also save this into our Animations folder. Now if we run our game, we should see that our TV animates. Let's take a look at the game object that was created when we made the new animation. Here you'll see tv-1 is the game object in our scene, and in the Inspector, will now have an animation component attached. The Controller represents the actual animation information. If we click on it inside of the Inspector, we'll automatically be taken to our Animations folder. Here you'll see we have the TVAnimation that we…

Contents