Question by
girlinorbit · Jun 16, 2020 at 12:23 AM ·
windowswindowfocusclose
Check When Game Window is Closed for Windows
I'm working on a game for Microsoft Windows and I need to figure out when the user stops playing the game. When I use OnApplicationFocus(bool) it sets as false when I change windows while in play mode in the editor. How can I tell when the window is closed and not when it looses focus?
Comment
Your answer
Follow this Question
Related Questions
How to detect when a standalone build is minimized? (Windows) 0 Answers
Hide the curser the moment i press play not having to press the play window 0 Answers
Changing the functionality of the close button? 1 Answer
Gray screen when trying to open unity. 7 Answers
How to handle actual process exit? 1 Answer