120 Days to Master Unity (Day 12)

Brian Perry
2 min readMay 30, 2021

‘Immersion Starts with Sound- Background Music’

Now the basic game is pretty much done. It looks really nice and plays pretty nice but something is missing. Some of us, like me, may have been making up the sounds in our heads this whole time but I think the game would be a whole lot better if it had some sound. That being said, lets add some sound to the game.

To get started, just like every other new feature that has been added so far, lets start out by adding an empty game object. Everything in the Audio will be put into this game object. Lets add background music to our game first. To do this, lets add another empty object to our game object and call it background.

After creating the empty background game object, we now need to add a new audio source component to the object. To do this, just click Add component in the Background game object as shown above, and click on Audio source. This will add the audio source component. After the audio source component is added, we now need to add an audio clip. Once we have an audio clip, we can just drag and drop the clip from our assets to the Audio clip space. To finish creating our background audio, just make sure that the loop and play on wake check boxes are clicked. Now we can just press play and our background music will be play. Now its really like a video game.

--

--