Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Pause(): void;
void Pause();
def Pause() as void

Description

Pauses playing the clip.

	function Start()
	{
		audio.Pause();
	}
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    void Start() {
        audio.Pause();
    }
}
import UnityEngine
import System.Collections

public class ExampleClass(MonoBehaviour):

	def Start() as void:
		audio.Pause()

See Also: Play, Stop functions.