Sound adds a dimension to your game in Unity
May 25, 2021
Unity game engine’s main camera comes equipped with a component named “Audio Listener”. This listener is waiting for an “Audio Source”.
- Create an “Audio Manager” in the hierarchy by an empty object and for adding a background sound, create another empty object within it and add an “Audio Source” component to it.
- Now, drag the audio file that you’d like to keep playing in your game.
- Also, please alter the other options such as volume, pitch, etc. based on your preference.
- Play the game and it should play the music :)
Thank you very much