Hi
I have been using this code in my project hoping that the android back button will work.
voidUpdate()
{
if (Input.GetKey (KeyCode.Escape))
{
ExitCam();
Application.LoadLevel (“Escape”);
}
}
But it won’t register the back button it at all.
I have tried
if (Input.GetKey (KeyCode.Escape))
and
if (Input.GetKeyDown (KeyCode.Escape))
it still won’t work 
I am using unity5 and a samsung tablet.
Edit - Sorry i did try Escape as well
For the back button on mobile, you should check for KeyCode.Escape
Yes i did try this and it still didn’t work on my samsung mobile.
Peecha
4
Hello, are you using any plugins (ads, etc.)? I was using chartboost in my project and it was blocking the back button event.
Use Input.GetKeyUp instead of Input.GetKey
GetKey in some instances may fire multiple times, you only want it to fire once.
meltdown look i said this in the post
I have tried
if (Input.GetKey (KeyCode.Escape))
and
if (Input.GetKeyDown (KeyCode.Escape)
Peecha: i am only using my plugin which i made in eclipse.
I’m using
if (Input.GetKeyUp(“escape”)){
Application.Quit();
}
And it works. If it doesn’t perhaps Sammy is doing something funky.