Sets/Gets how the AudioSource attenuates over distance.
function Start() { audio.rolloffMode = AudioRolloffMode.Linear; }
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Start() { audio.rolloffMode = AudioRolloffMode.Linear; } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Start() as void: audio.rolloffMode = AudioRolloffMode.Linear