Version: 1.7
LanguageEnglish
  • C#

Application.Pause

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static void Pause();

Description

Pause player application in QNX and EmbeddedLinux.

Resume player by calling Application.Resume() or send SIGCONT after this function is called. Only Platform QNX and EmbeddedLinux supports Application.Pause.

using UnityEngine;
using System.Collections;

// Pause player 5 seconds later

public class ExampleClass : MonoBehaviour { float timer = 0; void Update() { timer += Time.deltaTime; if(timer >= 5) { timer = 0; Application.Pause(); } } }