format
typescript
AudioSource.pitchclass: AudioSource
description
The pitch of the audio source.
Represents the pitch of the audio source. The default value is 1.0.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
number | The pitch. |
code example
typescript
let obj = new GameObject();
let source = obj.AddComponent<AudioSource>(AudioSource);
source.pitch;