Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AudioSource.Stop

Switch to Manual
public method Stop(): void;

Description

Stops playing the clip.

The AudioSource.stop function stops the currently set Audio clip from playing. The Audio clip plays from the beginning the next time you play it.

See Also: Play, Pause functions.

no example available in JavaScript

Did you find this page useful? Please give it a rating: