Sound adds a dimension to your game in Unity

Samarth Dhroov
May 25, 2021

--

Unity

Unity game engine’s main camera comes equipped with a component named “Audio Listener”. This listener is waiting for an “Audio Source”.

Unity
  • 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.
Unity
  • 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

--

--

No responses yet