Adding an Audio Track in Timeline

Eric Veciana
3 min readJun 21, 2023

--

Objective: Using an Audio Track within Timeline

An audio track is exactly what is sounds like. It will add an audio track into your timeline editor so you can manage the audio for the scene and edit it accordingly. Go ahead and add an Audio Track by pressing the ‘+’ key.

This will only take an audio file such as a .wav, .mp3, or .oog file. We can simply drag our audio file into the editor next to the audio track.

I’ve split the audio clip by pressing ‘S’ since this is a long song.

One nice thing about using the audio track is we can fade in or fade out our audio by using the ease in out by holding ctrl while dragging the ends.

We can also use the speed multiplier to speed up or slow down our audio. This will adjust the speed AND pitch of our audio.

We also have the ability to loop our audio as well adjust the volume.

Another thing we can do with this, is add multiple audio tracks and we can have them fade into each other or even stack them on top of each other.

As of right now, you can see that our Audio Source is currently set to None. This will play as a Mono audio track. If we wanted to make it a 3D stereo sound, we have to add an Audio Source.

To do this, I am going to create a new GameObject and call it Audio Source. Then, I can drag this empty gameobject into the Audio Source field and select Create Audio Source.

This will add an audio source component to my GameObject and give us more tools to adjust our audio track.

To make the audio source 3D, we can increase the Spatial Blend. You can see it says 2D and 3D underneath it.

Now, you might notice that your audio is very quiet when pressing play in Timeline. That may be because we have to adjust the audio zone by adjusting it directly within the gizmo inside the scene view.

Now, when our object gets within range of the audio source, the volume will sound louder.

This is useful if we want a radio to be playing music in our game, or if we want a lightbulb to blow out in our game, we can have the audio track coming from the source.

--

--

Eric Veciana

As a Unity and C# developer with a background in nursing, I'm a creative problem-solver with a passion for creating games and other interactive experiences.