|
Hello How do I set a distance for audioSource ??? thx >>>
(comments are locked)
|
|
You don't need any script to do that: in the AudioSource, select Rolloff Mode = Linear Rolloff, Max Distance = 5, Min Distance = 4.5 (or other value a little lower than the Max Distance) - this will make the sound disappear when the distance to the audio source is 5 or greater. thx very much
Jan 06 '12 at 02:49 PM
firasdeep
(comments are locked)
|

by set a distance do you mean that the sound should play only when sound source is within some distance?