format
typescript
AudioSource.minDistanceclass: AudioSource
description
The minimum propagation distance of the audio source.
The minimum distance refers to how far away the audio source can be before the audio no longer gets louder. When the listener is within the minimum distance, the sound will be at its maximum volume. If the listener is further away from the audio source than the minimum distance, the sound will start to attenuate.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
number | The minimum propagation distance. |
code example
typescript
let obj = new GameObject();
let source = obj.AddComponent<AudioSource>(AudioSource);
source.minDistance;