Videogames Development – Unity – How to add a background music

LOAD A BG MUSIC

1. MAIN TOP MENU> Edit> Assets> Import New Asset…> your-bgmusic.mp3
2. DRAG AND DROP ‘your-bgmusic.mp3’ from ‘Project’ window to ‘Scene’ viewport

MODIFY A BG MUSIC

1. Hierarchy> select your-bgmusic.mp3
2. InspectorA setup parameters

SETUP CAMER TO LISTEN MUSIC

1. Hierarchy> select Main Camera
2. Inspector> check Audio Listener

NOTICE:
The Audio Listener acts as a microphone-like device. It receives input from any given Audio Source in the scene and plays sounds through the computer speakers.