Immersion Starts with Sound

Dennisse Pagán Dávila
CodeX
Published in
3 min readMay 10, 2021

--

Whether you are gamer or someone who works in the gaming industry, the word immersion stands out with remarkable resolve. In fact, it has become one of the most sought-after qualities in video games from both a designer and consumer perspective. Development teams work tirelessly and continuously to bring immersion into our screens —from intricate gameplay, captivating storytelling, awe-inspiring graphics, and rich sounds.

One of the simplest ways to add immersion is through music. Music is a powerful conveyor that can evoke emotions instantly in a way no other form of media can. It can generate a deeper level of interaction between the player and the game, and shape the tone of a game and the variating situations within it.

How to add background music

Objective: Add a music track that will play on-loop as soon as the game starts.

  1. Create an Empty Game Object. This will be our Audio Manager object where all the game’s audio will be handle.

2. Since games have multiple audio types, it’s good to keep things organized as their own independent, easy-to-find structures. As such, create an empty object within the Audio Manager, this will be the object responsible for managing the Background music specifically.

3. Add Audio Source Component to your Background object.

4. Attach the desired background music into the respective slot of the component.

5. Make sure to click on Loop and play on awake so that the audio plays as soon as the level starts, and it plays on loop.

Result:

In the next article, we’ll take a look at how to play sound effects!

--

--

Dennisse Pagán Dávila
CodeX
Writer for

Software Engineer that specialize in Game Development. Currently looking for new opportunities. Portfolio: dennissepagan.com