AudioSource.dopplerLevel 多普勒级别


var dopplerLevel : float

Description描述

Sets the Doppler scale for this AudioSource

设置这个AudioSource的多普勒缩放。

  • C#

  • JavaScript

using UnityEngine;using System.Collections;public class example : MonoBehaviour {void Awake() {audio.dopplerLevel = 0;}}
// Dont use doppler effects.//不使用多普勒效果audio.dopplerLevel = 0;


,