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.