Save your game

Hey,

How do I save the gameprocess in Unity iPhone Games? I want my game to be autosaved before exit to be prepared if users hit the homebutton during the game. I need to save the player’s state which includes loads of variables as well as the environment and all enemies around him.
Can Unity ‘freeze’ the Game with some command into a file which is automatically managed or is this handcraft?

Thank you!

You can not freeze a game and replicate it, independent of the tech, as you don’t have enough time to store mbs.

What you need to do is use OnApplicationQuit and store the relevant gamestate data however you want (normally PlayerPrefs is beeing used)