format
typescript
AudioSource.dopplerLevelclass: AudioSource
description
The level of Doppler effect for the audio source.
The Doppler effect is a sound effect where the frequency of sound changes when there is relative motion between the listener and the sound source. Specifically, when the listener moves towards the sound source, the sound frequency increases, and when the listener moves away from the sound source, the sound frequency decreases.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
number | The level of Doppler effect. |
code example
typescript
let obj = new GameObject();
let source = obj.AddComponent<AudioSource>(AudioSource);
source.dopplerLevel;