Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

var minDistance: float;
float minDistance;
minDistance as float

Description

Within the Min distance the AudioSource will cease to grow louder in volume.

Outside the min distance the volume starts to attenuate.