Skip to content

format

typescript
AudioSource.Stop()

class: AudioSource

description

Stops the currently playing audio clip of the audio source.

parameter

param_nametypedescription

reture

typedescription
void

code example

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