Audio capabilities

Our game is very quiet right now. Even though we can see the actions of our player, we cannot hear what the player is doing – nor do we have a feel for the environment itself. We want to add some sounds that will exist in the environment and we want to provide some feedback when things happen in the game.

Playing sounds

As discussed in the Unity Fundamentals, all audio that is played is done so from the perspective of the AudioListener. So, if we want to have something in our game make noise, we simply need to add an AudioSource to that GameObject and we will get a sound. In our design we call for having ambient sounds in the environment.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.154.171