Harmonious Soundscapes: Integrating Audio and Music
We have now achieved good enough graphics quality, but we are missing an important part of the game aesthetics: the sound. Often relegated to being the last step in game development, sound is one of those things that, if it’s there, you won’t notice its presence, but if you don’t have it, you will feel that something is missing. It will help you to reinforce the ambiance you want in your game and must match the graphical setting. To do so, we will use Unity’s capabilities to import audio assets, play them in 2D and 3D positioning, and mix the audio using its mixer.
In this chapter, we will examine the following sound concepts:
- Importing audio
- Integrating and mixing audio
We will apply those concepts in our game to import the audio to play in different scenarios—such as when the player shoots—and music. Later in the programming chapters, we will play sounds, but...