Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

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

AudioSource.loop

Switch to Manual
public bool loop;

Description

Is the audio clip looping?

If you disable looping on a playing AudioSource the sound will stop after the end of the current loop.