Immersion Starts with Sound

Sound is arguably the most important part of any video game. A game's sound can create tension, emotion, and immersion. Creating background music with the Unity Engine is actually very easy. Let's begin!

Objective: Create looping background music for our game.

The first thing we need to do is create an empty Game Object that will act as our Audio Manager:

Create Empty Game Object

Name the new Empty Object “Audio_Manager.”

Name the object “Audio_Manager.”

Now create a new Empty Object within the one you just created and name it Background_Music:

We should create the Background_Music as a child of the Audio_Manager because the music will only serve one purpose, to play in the background o the game on loop.

Inside the Background_Music object, add a new component called ‘Audio Source.’

Add component Audio Source to the new GameObject

Drag the audio clip you want to use into the AudioClip of the Audio Source component:

Drag in the desired audio clip

The last thing to do is to make sure that ‘Play On Awake’ is enabled and enable ‘Loop.’

Turn on Play On Awake and Loop

--

--

--

Learning to become a unity game developer

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

Recommended from Medium

Integrate Jenkins with AWS — Part III

RespiraWorks is Merging with BostonVent!

BostonVent Ventilator and GUI Prototype Images

Why I want this.

How To Decide Which Programming Languages To Learn

Dimension Staff Information

Building a simple serverless application status page

How to Setup Lets Encrypt a Free SSL Certificate

How to Setup Lets Encrypt a Free SSL Certificate

How to Estimate the Cost Of Mobile App MVP Development (for your Appdea)?

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
Tacoma Johnson

Tacoma Johnson

Learning to become a unity game developer

More from Medium

Made With Unity | 2D Space Shooter Part 4: The Enemy

Creating a Multiplayer Game with Unity Netcode, Part 1: The Idea

Galaxy Shooter: From Prototype to Production

Variables: The Building Blocks of Programming