Load / Save Game State ?

Hi Everyone,

Where/what is the good reference to do “save/load game in unity” to a file ? thank you .

Easiest answer, search the forums or wiki, other than that, itterate over all game objects in the scene, give a tag to the ones you want to be able to save to a file, save the vector information and type of object to something, either a flat file, a database, or what ever you fancy. There is no built in “save game” feature in Unity for games, it is up to you as to what or how you want to store the information.

You can create a simple save/load system with Player Prefs:

http://unity3d.com/support/documentation/ScriptReference/PlayerPrefs.html

You can also use my Unity Serializer which is a free save game package available on the Asset Store.