back button in Android Activity

I’m trying to integrate Unity game project into a Android project in Eclipse following the User Manual. Now the game is successfully integrated into an new activity creating when user press a button in main activity. But when user pressed the android’s own ‘back’ button, nothing happened.

How can I make it to work like: when user presses ‘back’ button, go back to main activity(like in a normal android apps)?

Do this in one of your scripts (KeyCode.Escape is code for native “Back” button on Android):

if (Input.GetKeyDown(KeyCode.Escape))

or something like that :slight_smile: