Explore different types of audio files.
- [Narrator] In this movie, we're going to look at the really important asset type of audio. That includes sound effects. This includes things like gun shots and footsteps. But also, music tracks too. This includes things like compositions, soundscapes, ambient tracks, and I'm also going to include more broadly in that group voiceovers from actors, voices for characters for example. These different types of audible assets that we can simply import into a scene can radically enhance how immersive our atmospheres are for our player characters. So I'm going to jump over to the Unity editor here. And I've already gone ahead and imported the standard assets package which you can get from Unity Technologies, completely free from the Unity asset store. You simply go to the asset store, search for standard assets and you can import those into your project. I've gone ahead and already done that here which is included inside the course companion files. Now, this project already contains some pre-imported audio assets. I'm going to show you how we can access those assets and change some of those settings. Now firstly, I should say that pretty much every single audio asset can be imported into Unity, into the project panel, pretty much like any other kind of asset. Meshes or textures, we simply drag and drop the file here into the project panel and the audio file is imported. Now Unity supports a range of different audio formats. These formats are listed in the Unity documentation online under audio files here. And you can scroll down the page to find the supported audio formats. Now it includes mp3 files, ogg files, wav files, and a range of other files as well. Often these files are for music composition programs. In general, I recommend importing your audio as wav files to get the best quality and to support the greatest variety of platforms. So I'm going to suggest that we use the wav format but Unity does support these other audio types. I'm going to go back to the Unity editor here. In the case of the standard assets package, we can easily locate all the imported audio assets by searching through the project panel. I'm going to move to the project panel, and inside the search field I'm going to type T colon, and then I'm going to type audio clip. Every single audio asset that we import into Unity, whether it's a sound effect or a music track, is labeled as an audio clip. So you can see here we've got several audio clips imported into the Unity engine. For example, we have the acceleration audio here. I can go ahead and simply preview the audio just by pressing the play button here. It also gives us a visualization of the wave form of that audio asset. And we can do the same for all of the other audio assets. In addition to showing us a visualization of the audio asset it also shows us properties about the audio. For example, this is 44 kilohertz, it is a mono track, and it gives us the rough length of these different tracks here. So you can see we have these different lengths available for these different audio tracks. So, we've got some information, some basic data about these different audio tracks here. We can import them into our project, we can select the asset, and we can tweak it's properties here from the object inspector. In the next movie I want to go through some of the basic import settings that we can see here, and to give you some general dos and don'ts when setting these.
Find out more about Unity Certified Associate exam at https://certification.unity.com/products/certified-associate.
- Importing audio files
- Configuring audio listeners and sources
- Creating mixers
- Coding with AudioSources
- Adding sound effects for characters and events
- Building a particle system
- Configuring particle collisions