Unity Fundamentals — Timelines

Unity has a built-in feature called Timeline that allows you to visually play animations, edit music and more for a period of time. This feature reminds me of using Video editing software like Adobe Premiere Pro and Adobe After Effect.

Unity describes the Timeline feature as a tool to create cinematic content, game-play sequences, audio sequences, and complex particle effects.

Types of Tracks

The Timeline feature offers six types of tracks

  • Activation Track: Control the activation or inactivity of the target object.
  • Animation Track: Control the movement, rotation, and other animation of the target object
  • Audio Track: Control the audio
  • Control Track: Control objects, etc.
  • Signal Track: Communicate with outside systems
  • Playable Track: Used for scripting

Let us create a Timeline that will make a sphere GameObject appear.

Create a Timeline Asset

Go to your project window and right mouse click. Click on Create/Timeline. Now drag and drop the new Timeline file into the Project Hierarchy.

Open the Timeline window. Go to the Window Menu followed by Sequencing/Timeline.

Activating the Sphere

Create a Sphere GameObject and drag and drop it into the Timeline window. Make sure you have the Timeline object selected.

Change the Timeline from frames to seconds.

Modify the Timeline to when you want the sphere to appear. Now play to see the results from your work.

I hope this article has helped you with Timelines in Unity.

--

--

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
Jose Gil

Jose Gil

Unity Developer at Mooski Games