-
In
Audio Source, setSpatial Blendto 1; -
In
3D Sound SettingsunderAudio Source, setMin DistanceandMax Distance.
Within the minimum distance, the audio source plays the clip at maximum volume. Beyond that distance the volume decreases, and at the maximum distance the user no longer hears the audio.