API > AudioSource > loop
AudioSource.loop⚓︎
Name | Type |
---|---|
loop | boolean |
Description⚓︎
Is the audio clip looping?
Extra Detail⚓︎
Return or set whether the audio clip replays after it finishes or not. Disable looping on a playing AudioSource to stop the sound after the end of the current loop. There is a checkbox in the AudioSource component that allows you to enable or disable looping without code.