format
typescript
AudioSource.Stop()class: AudioSource
description
Stops the currently playing audio clip of the audio source.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
void |
code example
typescript
let obj = new GameObject();
let source = obj.AddComponent<AudioSource>(AudioSource);
source.Stop();