How do I save/load data? This includes things like High Scores, progress in game… etc
search the forum for xml, or check out the unity wiki, there is a save and load script…
I also have a tutorial on the subject. (Saving With Player Prefs)
It’s at my website, unity-tutorials.com. It does cost $14.95, but if you want to check out the quality of the tutorials you can download a couple free tutorials on the site as well.
I agree with the guys above, look around as there are a few ways to solve this sort of problem depending on your needs and environment. Some links to help get you started:
-
For local storage of data, web or desktop, look at Unity’s built-in PlayerPrefs class.
-
For remote storage of data, look at Unity’s built-in WWW class as it allows you to send/receive data from PHP/ColdFusion/ASP/PSP, to pull text files (like XML), etc.
Start with my links above, as well as those from the guys that posted ahead of me and I’m sure you’ll find what you’re after! ![]()