Skip to content

format

typescript
AudioSource.panStereo

class: 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_nametypedescription

reture

typedescription
numberStereo balance of the audio source

code example

typescript
let obj = new GameObject();
let source = obj.AddComponent<AudioSource>(AudioSource);
source.panStereo;