var dopplerLevel : float
Description描述
Sets the Doppler scale for this AudioSource
设置这个AudioSource的多普勒缩放。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Awake() {
audio.dopplerLevel = 0;
}
}
// Dont use doppler effects.
//不使用多普勒效果
audio.dopplerLevel = 0;