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