|
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 :(
(comments are locked)
|
|
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; 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)
|
|
AudioSource has a property called volume. if you have many audio clips you can play them with audio.PlayOneShot with different volumes.
(comments are locked)
|
