The curve that specifies how sound fades with the distance from Audio Component to the Audio Listener.****
// @input Component.AudioComponent audiovar spatialAudio = script.audio.spatialAudio;var distanceEffect = spatialAudio.distanceEffect;distanceEffect.type = Audio.DistanceCurveType.Linear; Copy
// @input Component.AudioComponent audiovar spatialAudio = script.audio.spatialAudio;var distanceEffect = spatialAudio.distanceEffect;distanceEffect.type = Audio.DistanceCurveType.Linear;
Inverse Curve ~ y(x) = (a/x)+b
Inverse Logarithmic Curve ~ +log(x)
Linear Curve ~ y(x) = ax+b
Logarithmic Curve ~ -log(x)
The curve that specifies how sound fades with the distance from Audio Component to the Audio Listener.****
Example