AudioSource.loop Manual     Reference     Scripting  
Scripting > Runtime Classes > AudioSource
AudioSource.loop

var loop : bool

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.

JavaScript
// Stop looping the sound
audio.loop = false;