Adding car audio
In Phase 5 of our roadmap, which we worked on in Chapter 10, we discussed adding environment sounds to our city. One of the ways we can do that is by adding sounds to cars because, primarily, environment sounds in a city are car sounds and people sounds. Since we have people sounds covered, we will focus on car sounds and how that environment can be built based on what we have already.
In this section, we will first focus on downloading our car audio sounds, and then we’ll move on to adding spatial audio to the car prototypes that we created. Finally, we’ll create a game manager script that allows us to control and vary car engine and honking sounds.
To add spatial audio to cars, follow these steps:
- Go to the Unity Asset Store and search for
Engines
: https://assetstore.unity.com/packages/audio/sound-fx/engines-123836. - Download and import the ENGINES package, which contains audio files such as car engine and honking sounds.
- You will...