format
typescript
AudioSource.panStereoclass: AudioSource
description
Stereo balance of the audio source.
The value ranges from -1.0 to 1.0. When the value is -1.0, the audio source is completely in the left channel. When the value is 1.0, the audio source is completely in the right channel. When the value is 0.0, the audio source is balanced and distributed between both channels.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
number | Stereo balance of the audio source |
code example
typescript
let obj = new GameObject();
let source = obj.AddComponent<AudioSource>(AudioSource);
source.panStereo;