Version: 1.7
LanguageEnglish
  • C#

Application.Resume

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 Resume();

Description

Resume paused player application in QNX and EmbeddedLinux.

Only Platform QNX and EmbeddedLinux supports Application.Resume.

Call Application.Resume in a C# sub thread to resume Tuanjie engine after Application.Pause is called.

using UnityEngine;
using System.Collections;
using System.Threading;
// Resume player after pausing for 5 seconds.

public class ExampleClass : MonoBehaviour { private Thread resumeThread; void Start() { PausePlayer(); } void PausePlayer() { Application.Pause(); StartResumeThread(); } private void StartResumeThread() { resumeThread = new Thread(ResumePlayer); resumeThread.IsBackground = true; resumeThread.Start(); } private void ResumePlayer() { Application.Resume(); } }