Journal 28 — Immersion in Games Using Sound
Audio adds another dimension to the game experience. In this example, we will update this game to add background music, and in the next Journal, we will add all the sound effects.
To start, we will create an empty game object, and call it Audio_Manager.
After the Audio_Manager is created, we will add child game object called Background, to play the background music.
With the Background game object selected, we will add an Audio Source component.
Finally, now that we have an Audio Source, we can attach the background music audio clip. Also, we want this to play on awake at the start of the game, and we want it to loop, so make sure those options are checked.
Thank you for your time! See the next Journal for several examples of adding audio clips for sound effects.