Get moving — animating game objects in Unity Timeline

In this quick article, I will show you how to animate an object in Unity Timeline.

Following on from my previous article I will animate our Cinemachine virtual camera that is attached to our dolly track. This animation will a quick and simple walkthrough.

I am going for the following cut scene so I’m only going to need to animate the cameras, all points will remain valid, however.

In order to animate the camera across the dolly track, we adjust the “Path Position variable in our Cinemachine virtual cameras body values. the first step is to add the camera to our timeline and select “Add animation track” this will automatically add an animator to our camera.

The next step is to record our animation. The animation works the same as it does in the animator, all based on keyframes. This means we can just adjust our camera path from the starting node when the animation starts, to the end node at the end of our shot.

I am wanting to have the camera look at our player so I add them into the “Look At” property.

Now our dolly track animation feels like it goes on a bit too long, not to worry because we can edit our animation. Click the menu button on the animation track and select “Edit In Animation Window”. This will open the animation window up where you can adjust the keyframes.

After adjusting the settings, here is my final result.

That's all for now.




Unity developer with a love of learning all things programming.

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

Recommended from Medium

Find the Largest Sum of Two Elements in an Array of Positive Integers in Golang

Sum subarrays of a Matrix.

Agentd Sudo — TryHackMe — Writeup

Set Mismatch — Day 87(Python)

How to make a Power Apps Custom Connector for Power BI

Big O Notation

A case for Agile

The ZIP file format reduces file size by compressing files, saves disk space and reduces network…

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
Luke Duckett

Luke Duckett

Unity developer with a love of learning all things programming.

More from Medium

Transposer Virtual Camera Explained in Unity’s Cinemachine

Creating an Office Den in Unity Part 2: Lights, Cookies and Emissions

Modular Health System in Unity!

My journey becoming a Unity game developer: Make a game look beautiful-Creating colliders in the…