Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

Application.backButtonLeavesApp

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

public static bool backButtonLeavesApp;

Description

Whether the Back button hands control to the operating system instead of the application.

Only usable on Android or Universal Windows Platform (UWP). On all other platforms the property is a no-op: the getter always returns false and the setter has no effect.

The default value is false.

When the value is true, the operating system handles Back: it minimizes the application on Android and suspends it on UWP. Otherwise, the button is delivered to the application as the Escape key (KeyCode.Escape).