- Home /
how do you make a save script fo minecraft like games
hello im making a minecraft like game but i need help on making a save script for unity like a script that will have a butten that will save user changes to the world then when the player comes back to the would it will be saved or where can i get a save script from
Comment
Answer by Sycohazza · Jul 23, 2013 at 08:48 PM
http://docs.unity3d.com/Documentation/ScriptReference/PlayerPrefs.html
Example:
private string username = "Hazza";
PlayerPrefs.SetString("username", username);
username = PlayerPrefs.GetString("username");