Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity android back button

using UnityEngine.SceneManagement;

void Update()
{
    if (Input.GetKey(KeyCode.Escape))
    {
        SceneManager.LoadScene("Main Menu");
    }
}
 
PREVIOUS NEXT
Tagged: #unity #android #button
ADD COMMENT
Topic
Name
3+4 =