Lining up Audio & Visual to Build Cutscenes in Unity

The next thing we will learn is how to add audio to the Timeline. I will show you how to do it for the next cutscene in my project. I set the animation for the actors and virtual cameras since we know how to do it from previous articles, and we will focus on the audio. If you want to do it yourself, there are the director’s notes in the project, find the one called “Start cutscene” and animate everything as in the script.

Create a new empty GameObject called Audio, and two children, empty GameObjects called VO (Voice Over) and Background_Music. Reset positions in all three GameObjects. Put the Audio GameObject in the Intro_Cutscene GameObject, which holds all GameObjects used in this cutscene.

Add AudioSource component to both VO and Background_Music.

Add two Audio Track to the Timeline.

Drag the VO GameObject to the first one, and Background_Music to the second.

Now add the Audio to the Timeline.

You may notice that the Audio time is shorter than the animations on the virtual cameras. Unfortunately, there is no way to preview the audio track if you are not in play mode. To align the audio track with other tracks, you need to go to play mode change the tracks there. Normally in Unity, if you make some changes in the play mode, they won’t be saved. Fortunately, the changes made in the Timeline won’t disappear even if they are made in play mode.

The only thing to do now is to match the virtual camera tracks with the audio.

Good luck!.

--

--

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