Skip to content

format

typescript
AudioSource.pitch

class: AudioSource

description

The pitch of the audio source.

Represents the pitch of the audio source. The default value is 1.0.

parameter

param_nametypedescription

reture

typedescription
numberThe pitch.

code example

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