Back button

Creating a guide app for android. Im wondering how i would go about making a skript for the back button to the main menu.

Just check for the “escape” key:

void Update()
    if (Input.GetKeyDown(KeyCode.Escape))
        // do something.

If you would have searched before posting the question you should have found tons of similar examples.

Even when only searching here on UA you get endless results

There is no escape button on android…

You should create a button, Rename Your Main Menu as MainMenu And attach it to build settings then create a script and paste this inside it :

public void BackButton(){

then select button and open the inspector you’ll see a button(plus) below onclick click on that then attach the script to the canvas and drag canvas inside the button onclick’s object Select you script end select BackButton()