- Home /
Question by
max109y · Nov 17, 2020 at 11:17 AM ·
buttonsmobile devicesunity android
Android Menu and Home buttons are not working
void Update() {
if (Application.platform == RuntimePlatform.Android)
{
if (Input.GetKey(KeyCode.Home) || Input.GetKey(KeyCode.Escape) || Input.GetKey(KeyCode.Menu))
{
Application.Quit();
return;
}
}
}
Only Escape Button works the other ones tab me out of the game and when i return the game didnt reset
Comment
Your answer
Follow this Question
Related Questions
How do I connect my jump button to my player script? 1 Answer
Grabbing objects for touch controls? how 2 Answers
2D CrossPlatformInput - AxisTouchButtons are not working? 3 Answers
Moving buttons 1 Answer