Question by
zip789 · Sep 03, 2016 at 02:30 PM ·
androidinputandroidpluginexit
Soft buttons not working in Unity Android
I have built a simple game on Nexus 6 which has back soft button, the following code does not work:
if (Input.GetKeyUp(KeyCode.Escape)) { Debug.Log("Pressed back !\n"); Application.Quit(); }
What is the best way to handle soft buttons on Android from Unity ? I want to exit when back soft button is pressed.
Comment
Your answer
Follow this Question
Related Questions
Is possible play PC game with input from android device? 1 Answer
Android Downloads Folder 2 Answers
How use ANDROID NAVIGATION BUTTONS 0 Answers
Problem with Android platform 0 Answers
How to check if a player click on a object: Android Mobile 1 Answer