Forum Discussion
max_desplanches
6 years agoHonored Guest
Unity OnApplicationQuit() call when closing app
Hi, I need to send a message to a server when my oculus Quest app is closed. In OnApplicationQuit(), I'm calling my function to send a message to the server but it appeared that the server never ...
rh_galaxy
6 years agoHeroic Explorer
I don't see the OnApplicationQuit call... I myself does
if (Menu.bQuit) //indication in my own code that we should quit
{
#if UNITY_EDITOR
//Application.Quit() does not work in the editor so
// this need to be set to false to end the game
UnityEditor.EditorApplication.isPlaying = false;
#else
UnityEngine.Application.Quit();
#endif
}Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago
- 10 months ago