Need help about Playerprefs.

I just want to know, how can i change the name of the save/file it saves the values in…

thank you,
Aix.

anyone?

You can’t, nor would you want to, since changing the name will cause it to not work. Also in some cases it’s not a file, such as on Windows where it writes to the registry.

–Eric

hmm, but how ppl make multiple saves then?

By saving to a different key or saving to a file without PlayerPrefs.

Yeah, PlayerPrefs is not suitable for non-trivial saves. As the name implies, it’s intended for preferences.

I’d recommend looking at the built in XML functionality in .NET/Mono, and also looking at how to read/write that to a (text) file, as a reasonable place to start.

Well, then this part of the game will come later then, as i should finish the main game first…

Yea I was looking into playerprefs to save large amounts of data and very very quickly realized that having a zillion registry entries would become a bad idea. I’m in the process of learning XML parsing right now. XML itself is a walk in the park, but parsing it may be difficult to start.

yeah, well… gonna learn it someday.

What do you mean by “learning XML parsing”? .NET/Mono provides this functionality out of the box. All you have to do is walk the document and pull out your data.

Of course, if that’s what you were referring to, then carry on. :slight_smile: