How do I set a distance for audioSource ???
asked Jan 04 '12 at 10:39 AM
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.
answered Jan 05 '12 at 01:51 AM