- Home /
Webplayer - action on leave page
I would like to save the game state when the user leaves the web page.
I thought I had seen a delegate for this, but I've searched and cannot find it.
Is there a way to do this?
I'm currently exploring sending a message from the browser, but I hate having to rely on the hugely varying nature of browsers for something so important as saving the player's game state.
Answer by Waz · Jul 18, 2011 at 12:09 AM
MonoBehaviour.OnApplicationQuit is the message I was after.
Your answer
Follow this Question
Related Questions
How do I keep variables when game is closed? 1 Answer
Is it possible to identify if a user is using webplayer or standalone? 1 Answer
Save/Load game using XML on Browser/Web Player 2 Answers
WebPlayer call a server php script issue 1 Answer
How to save runtime generated texture in Webplayer to hard drive? 1 Answer