Close Application

Using Application.Quit(); does not work for closing the app and going back to home. I know that typically the user will press the home button but is it possible to close the app somehow via code?

thank you

This is definitely on our list to be implemented

On the flip side, is there currently a way to detect the interruption/close of the game in script so that you can save the game state, etc, before dumping out?

So far I haven’t found one. The usual supsects (OnApplicationQuit, OnApplicationPause) don’t seem to do anything.
If you find a way, let me know. :slight_smile:

-markus

Such a feature would be important for creating items like a limited-play demo versions of game titles.

In the meanwhile, I have noticed that the iPhone does seem to handle app crashes gracefully. While I would not recommend doing this, one possible solution might be to create a special scene file that would intentionally crash on load and boot the user back out to the iPhone’s main interface.

Heh, all the crashes I’ve experienced lock up the unit entirely and I have to do a cold reset.

I’m with Brady on this - all the crashes I’ve made have locked up the unit :frowning: