Unity: Creating background music

Objective: We need to add some background music for our game.

To start, we should set up an empty game object that represents our audio manager and also create a empty child object that represents our background audio.

Next on the background object we need to add a component called audio source that’ll handle the functionality of playing our background audio. When the component is added drag your audio file to where it says audio clip and then make sure play on awake and loop are check marked so the music starts when the game starts and it doesn’t stop.

--

--

--

I am hard working Game development student learning as much about game development and unity as possible.

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

Recommended from Medium

Python programming for kids.

End of Hacktoberfest

A Trend-Following Strategy With Psychological Levels.

Predefined Constant in php

Guide to start contributing to Open Source

Spark SQL Hive Job Conversion

SolBridge Key Features

Making smarter monsters: Adding pathfinding to Unity’s 2D Roguelike tutorial

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
Jake Boere

Jake Boere

I am hard working Game development student learning as much about game development and unity as possible.

More from Medium

Level Design in Unity Part 1: The Floor

Unity highlight text instead of button

Ease Of Building UI Elements In Unity

Galaxy Shooter 2D — Boss (Set up)