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

function Pause () : void

Description

Pauses playing the clip.

JavaScript
function Start()
{
audio.Pause();
}

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Start() {
audio.Pause();
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Start():
audio.Pause()

See Also: Play, Stop functions.