I want to know which key to stop the app
I want to know if the app is stopped by pressing the Menu button or the Home button on Unity Android and pressing any key when the app is stopped.
When the application is stopped and OnApplicationPause () is called, I want to know if the user has pressed the Home button or the Menu button. How do I do this?
In Update() method, if I try to get the key using if (input.GetKeyDwon (KeyCode.Home) || input.GetKeyDwon (KeyCode.Menu)), I do not know how to get the key down because the app goes down before i get the key from Update() method.
I am very troubled. Please help me
Your answer
Follow this Question
Related Questions
Someone please help me with combination lock 0 Answers
Google android project not in Unity 5.5 ? 1 Answer
VFX graph freeze android build 0 Answers
Publish android app 1 Answer
Unity - How to add native view to Unity main activity? 0 Answers