Skip to main content
Rollback to Revision 4
Source Link
Vaillancourt
  • 16.4k
  • 17
  • 55
  • 61

I take an empty gameobject and a script in which I just write below code to handle back button in android phone, but it's not working.

if (Input.GetKeyDown (KeyCode.Escape)){
            // Escape button pressed
            print("Escape");
}

Problem Solved. this code is working.

I take an empty gameobject and a script in which I just write below code to handle back button in android phone, but it's not working.

if (Input.GetKeyDown (KeyCode.Escape)){
            // Escape button pressed
            print("Escape");
}

Problem Solved. this code is working.

I take an empty gameobject and a script in which I just write below code to handle back button in android phone, but it's not working.

if (Input.GetKeyDown (KeyCode.Escape)){
            // Escape button pressed
            print("Escape");
}
added 41 characters in body
Source Link

I take an empty gameobject and a script in which I just write below code to handle back button in android phone, but it's not working.

if (Input.GetKeyDown (KeyCode.Escape)){
            // Escape button pressed
            print("Escape");
}

Problem Solved. this code is working.

I take an empty gameobject and a script in which I just write below code to handle back button in android phone, but it's not working.

if (Input.GetKeyDown (KeyCode.Escape)){
            // Escape button pressed
            print("Escape");
}

I take an empty gameobject and a script in which I just write below code to handle back button in android phone, but it's not working.

if (Input.GetKeyDown (KeyCode.Escape)){
            // Escape button pressed
            print("Escape");
}

Problem Solved. this code is working.

We put codes in code blocks. You can find it on the bar above the text area when you're writing your questions or answers.
Source Link
John Hamilton
  • 3.1k
  • 1
  • 16
  • 34

I take an empty gameobject and takea script in which iI just write below code to handle back button in android phone, but itsit's not working..

if (Input.GetKeyDown (KeyCode.Escape)){ // Escape button pressed print("Escape"); }

if (Input.GetKeyDown (KeyCode.Escape)){
            // Escape button pressed
            print("Escape");
}

I take empty gameobject and take script in which i just write below code to handle back button in android phone, but its not working..

if (Input.GetKeyDown (KeyCode.Escape)){ // Escape button pressed print("Escape"); }

I take an empty gameobject and a script in which I just write below code to handle back button in android phone, but it's not working.

if (Input.GetKeyDown (KeyCode.Escape)){
            // Escape button pressed
            print("Escape");
}
deleted 12 characters in body
Source Link
Loading
Code formatting, removing ambiguity about Update
Source Link
DMGregory
  • 136.3k
  • 22
  • 247
  • 373
Loading
Source Link
Loading