We’ve learned how to put the audio in the object.
First, I downloaded audio.zip from our DMC 1 blog.
Before you import the audio, create an folder named ‘audio’ inside assets.
And you can just drag and drop the audio inside that folder.
Select the object you want to put an audio, and click ‘Add Component’.
Then you can see that screen. Choose ‘Audio Source’.
Click the little circle next to AudioClip, and choose the sound you want to put in.
Make sure to check ‘Play On Awake’ and ‘Loop’. It will make your sound awake and loop.
If you want to hear your sound when you get closer, then move Spatial Blend bar to 3D area. The sound gets wider when we go closer. You can also change some details down at ‘3D Sound Settings’.
‘Max Distance’ is about your sound’s range. You can set your sound’s maximum distance.
You have to choose Custom Rolloff. (Volume Rolloff > Custom Rolloff)
Yes, now we are ready to play.
I’ve add some other sounds to my zombies and idols.
If you find something to change, click ‘play’ button again. Not ‘pause’ button.
And now we are going to export this file to share with other people.
Go to assets > Export Package.
Save it to your dropbox. And when you open the export package, you can do it like this.
My Dropbox Link :