I
I
Ivan Ivanov2020-09-07 20:14:53
Android
Ivan Ivanov, 2020-09-07 20:14:53

How to exit the unity game?

Application.Quit();
This code only minimizes the game on android phone

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Ovddie, 2020-09-07
@Ovddie

It seems to be so!

#if UNITY_ANDROID && !UNITY_EDITOR
    private void OnApplicationPause()
{

}
#endif
    private void OnApplicationQuit()
{

}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question