Hi,
I check if game is quited with OnApplicationQuit() event.
But it doesn’t trigger on the phone if for example main menu button (on the phone itself) is clicked.
Is there a good way to determine when the game is quit on mobile device?
Hi,
I check if game is quited with OnApplicationQuit() event.
But it doesn’t trigger on the phone if for example main menu button (on the phone itself) is clicked.
Is there a good way to determine when the game is quit on mobile device?
Yep, you need OnApplicationPause instead
(Or you can select “exit on suspend” in the player settings for mobile)