Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Android Back Button

Discussion in 'Input System' started by Deleted User, Apr 30, 2021.

  1. Deleted User

    Deleted User


    Hello all,

    I want to implement a popup to let user to decide to quit application or not when the back button is press on Android. I have tried a few things and there is no luck. Can anyone explain to me how to set this up?

    At the moment I have set up an exist action on inspector like this:

    Screenshot 2021-04-30 104616.png

    It works on editor when I press the "Escape" key on keyboard, but it does nothing when I deploy it on my Android tablet/phone. Have I done this correctly?