AudioSource.dopplerLevel 多普勒级别

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;
Page last updated: 2011-4-5