AudioRolloffMode.Custom

AudioRolloffMode.Custom

Description

Use this when you want to use a custom rolloff.

Note: Currently is not possible to modify the volume curve via scripting.

JavaScript
    // Sets the rolloff of the audio source attached to
// this script to custom.
@script RequireComponent(AudioSource)
function Start() {
audio.rolloffMode = AudioRolloffMode.Custom;
}