Unity Game Development — Immersion Starts With Sound

Claudio Grassi
3 min readApr 23, 2021
That’s my Jam!

From the ominous ambient sounds of some stygian cave to the familiar din of a crowded marketplace, the proper use of sound can make or break the user experience.

In this short article, I will cover how to set up game audio in Unity. I will begin by adding background music and show you the basics of how the different Audio Components interact.

Unity will automatically add an Audio Listener Component to the Main Camera when you create a new scene. It is important to note that there can only be one Audio Listener per scene. The Audio Listener is responsible for receiving input from Audio Source Components. You can add as many Audio Source Components as you need.

To start playing our in-game music, let’s begin by adding an Audio Source Component to an Empty GameObject.

Next, we have to import a sound file that Unity will use as the Clip for our Audio Source. Unity can interpret a wide variety of audio file formats. In my case, I will be importing an…

--

--

Claudio Grassi

Experienced digital artist, Unity game developer & coder with a knack for problem solving and a passion for video games.