x


change detail in game an the sound?

I have 2 questions

1) I want the volume level of an audio source changed more with a var in javascript and how is that possible?

2) how can I change the detail in the game itself? as at startup

plese help :(

more ▼

asked Jul 04 '10 at 10:35 AM

crasyboy42 gravatar image

crasyboy42
229 21 21 23

(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

The audio source you use has a variable called volume which you can alter directly.

If the sound is mono and is a 3D sound it'll get quieter the further away it is from the camera (and its audio listener). You can also edit this effect with the rolloffFactor variable.

http://unity3d.com/support/documentation/ScriptReference/AudioSource.html

e.g.

audio.volume = 0.2;

more ▼

answered Jul 04 '10 at 10:40 AM

spinaljack gravatar image

spinaljack
9.1k 18 31 92

dont work :( can i do it on a differince way

Jul 06 '10 at 06:57 AM crasyboy42

Can you be more specific? The more details the better

Jul 06 '10 at 09:47 AM spinaljack
(comments are locked)
10|3000 characters needed characters left

by detail you prolly mean quality. start here

more ▼

answered Aug 29 '10 at 05:55 PM

matyicsapo gravatar image

matyicsapo
659 12 15 27

(comments are locked)
10|3000 characters needed characters left

AudioSource has a property called volume. if you have many audio clips you can play them with audio.PlayOneShot with different volumes.

more ▼

answered Aug 01 '10 at 04:12 PM

Ashkan_gc gravatar image

Ashkan_gc
9.3k 33 56 120

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3815
x3570
x542
x389
x57

asked: Jul 04 '10 at 10:35 AM

Seen: 1240 times

Last Updated: Jul 04 '10 at 01:37 PM