DMC 1_Adding audio

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.

스크린샷 2016-03-21 오전 10.30.58

And you can just drag and drop the audio inside that folder.

스크린샷 2016-03-21 오전 10.33.44.png

Select the object you want to put an audio, and click ‘Add Component’.

스크린샷 2016-03-21 오전 10.34.05.png

 

 

스크린샷 2016-03-21 오전 10.34.54.png

Then you can see that screen. Choose ‘Audio Source’.

스크린샷 2016-03-21 오전 10.47.00.png

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’.

스크린샷 2016-03-21 오전 11.06.06.png

‘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.

스크린샷 2016-03-26 오후 8.37.11.png

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.

스크린샷 2016-03-21 오전 11.41.24.png

My Dropbox Link :

https://www.dropbox.com/s/exi7rxkw1ktq7ix/MyFirstWorld_1212200.unitypackage?dl=0

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s