AudioSource.dopplerLevel Manual     Reference     Scripting  
Scripting > Runtime Classes > AudioSource
AudioSource.dopplerLevel

var dopplerLevel : float

Description

Sets the Doppler scale for this AudioSource

JavaScripts
// Dont use doppler effects.

audio.dopplerLevel = 0;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
audio.dopplerLevel = 0;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
audio.dopplerLevel = 0