Adding Ambient Music in Unity

Objective: create an object to play the background music.

In Unity it is very easy to add background music. First create an empty gameobject, then add an AudioSource Component and the last step is to assign the audio clip.

You can adjust the volume of the audio source component until you find a comfortable mix for the game.

And that’s it!!! Now our game have an ambient music to improve the atmosphere.

--

--

--

A Software Engineer passionate about game dev and interactive products with Unity. I consider video games to be the artistic expression of programming.

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

Recommended from Medium

How to find unused Swift code

I’ve Used Macs for a Year — This is What I Still Hate About Them

Backing up OpenShift

Daily Progress — Setting up the Spider

Simple Kubernetes cluster using Ansible on AWS

My Ruby on Rails Recipe

How I used GitHub Actions to automate (some) of my deployment

The Sherbet Weekly Scoop # 4

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
Rusben Guzman

Rusben Guzman

A Software Engineer passionate about game dev and interactive products with Unity. I consider video games to be the artistic expression of programming.

More from Medium

Quick tip — How to set up Occlusion Culling in Unity

DOTS in UNITY

Player Jump in Unity

Variables