Adding Background Music

Using the Sound Manager

Adding background music couldn’t be more simpler. Unity by default provides an Audio Component within the Main Camera, so all that is needed is an audio source. To keep things more organized, we can create an empty game object and name it “Sound Manger” or “Audio Manager” as an overall umbrella to house the rest of the sound EFX. Within the Sound Manager create another empty game object and this time name it “Background Music” because this game object is going to be containing the music for the background. Add an “Audio Source” component and drag in the required music file into the Audio Clip slot.

Make sure that “Play on Awake” and “Loop” is checked to have the music play at the start of the game. Now once you save and hit play, the music should start playing when the game starts, it shall also loop back at the end of the audio clip.

--

--

--

A Designer, an Illustrator and a massive tech geek aspiring to become a professional Unity Developer.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Combine Developer Skills and Automation to Achieve DevOps Success

How to add a Self-Signed Certificate on Ubuntu Localhost

Maze Testnet ‘Taurus’

What is new on Business Central, from Foundation Team perspective — March 2020

Docker + ASP Net Core

Date/ Function Cheatsheet in MySQL

Ongoing IT Outsourcing- Since The 1990s

[May Update] Wasp — language for developing full-stack JS apps with no boilerplate

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Simon Truong

Simon Truong

A Designer, an Illustrator and a massive tech geek aspiring to become a professional Unity Developer.

More from Medium

Booklight Litepaper — Reading in Web3

Gameplay Journal #8

The Meaning of Practice

Banquet of Woes