How to detect window close event
Is there a way to detect window close event in the various platforms.
I'm trying to update a database variable and the game closes. But if the player clicks on the window close button, OnApplicationQuit and OnDestroy are not called.
Is there a way to detect it?
Comment
I'm trying to update a database variable WHEN the game closes
Windows, $$anonymous$$ac and Linux should be enough for me.
Your answer
Follow this Question
Related Questions
How to make a GameObject dissapear when I'm close to them and click on them? 0 Answers
Pressing windows own close button 0 Answers
Control were game window opens on desktop? 0 Answers
Need help getting my door to open and close without triggering other doors. 1 Answer
Editor closes on selecting a project 0 Answers