Hello
Is it possible to loop through all of the data stored in the playerprefs without specifying a key and get it to return everything it finds ?
Something like
foreach ( x in Playerprefs )
return x
Cheers
Hello
Is it possible to loop through all of the data stored in the playerprefs without specifying a key and get it to return everything it finds ?
Something like
foreach ( x in Playerprefs )
return x
Cheers
I’m pretty sure this isn’t possible, as Playerprefs isn’t a hash, but rather individual entries in the system. From what I’ve read, you should limit your use of this; it can be slow, and also unreliable. Probably better to serialize a real dictionary.
Here’s a thread with more in-depth information: http://forum.unity3d.com/threads/75232-PlayerPrefs-keys