Level Up Your Unity Skills: Adding Background Music to Begin Immersion

Gerald "Ray" Patton
1 min readApr 20, 2024

--

Objective: Start the feeling of Immersion by adding some background music…

In the past articles we have looked and build the game from the ground up and adding visual elements and effects to enhance the game. The next couple articles will deal with adding sound to the game in order to increase the immersion.

This first one is dealing with adding background music within Unity. Unity has a built in component called Audio Source. We need to add one for the Background Music. This is done my first creating an empty Game Object , Audio_Manager with the within the Hierarchy. A child object, Background, is created to manage the background music. An new Audio Source component is add to Background to handle this management.

From here you just add your chosen Audio source for the background music under AudioClip and make sure Play On Awake and Loop are checked.

The background music is now added. The next few articles will deal with add additional SFX (sound effects) using code. Until next time, Happy Developing!

--

--

Gerald "Ray" Patton

Unity Developer | C# Software Engineer | Game Developer | USAF Veteran