|
Hey guys I'm currently working on a decent sized game with my fellow co-worker (In a small independant game companay). For now we are using PlayerPrefs rather then a database, as I usually do. But Just about an hour ago, no more information will be saved. I can still load all the old info saved on each playerpref, but no longer assign new data to them. I've searched around for something similar for anyone and I couldn't find anything. I thought if I cleared my PlayerPrefs folder it may work, but I cant find the folder and the small editor script I made wont work. class ClearMyPrefs extends EditorWindow { private var Sceen:int=1; } If someone could help me figure out why they wont save and why I cant clear my folder it'd be much appreciated, thank you. Extra Detail: I have my computer split into 2 drive, C: and E:, I have Unity saved in the E: incase C: crashes.
(comments are locked)
|
|
You have to keep in mind that the PlayerPrefs works totally different depending on what platform you run your game. Read the docs on PlayerPrefs carefully. If you run inside the editor the data is stored in the registry. Running the same game as standalone / in the editor / in the webplayer will result in different PlayerPrefs storage places. If you want to clear the prefs you need a script at runtime that you can execute even in the webplayer.
(comments are locked)
|

There is a 1 megabyte size limit for web player PlayerPrefs, but it seems standalone versions don't impose any limit.
This makes sense then, the hole project is Web based, I guess we'll have to switch to the Database sooner then I hoped, but I'd still like help with clearing the PlayerPrefs if anyone can.