- Home /
Saving data on iPhone
I've been searching both the script references and the forum without any conclusive result, and so I have to ask what I hope to be a simple question. How do I save a series of variables to a file on the iPhone? - preferably a file, that doesn't get replaced when the app is updated.
What I want to store is, for each level: var level1unlocked : boolean = true; var level1collectedStars : int = 2; var level1highScore : int = 274; - and so forth...
Something like that anyways. The only thing I've found is this thread: forum.unity3d.com/threads/14286-Saving-Data-to-iPhone but the way I see it, that would only enable me to write one line of data in each file I save, leaving me with a couple of hundred files, once the game is done.
I know this sounds kind of nuub'ish, and please respond as such, since I have no idea where to begin.
Your answer
Follow this Question
Related Questions
How can I put a mp3 in the iphone documents folder then load it with www? 1 Answer
Custom Project Editor Window 1 Answer
Issues with accelerometer calibration? 1 Answer
Device Auto-Rotation 1 Answer
iPhone: Bounce on touch 2 Answers