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;
@MenuItem ("Windows/ClearPrefs")
static function Init () {
var window = EditorWindow.GetWindow(ClearMyPrefs);
}
function OnGUI () {
if(Sceen==1){
GUILayout.Space(20);
if(GUILayout.Button("Delete All Prefs")){
Sceen=2;
}
} else {
GUILayout.Space(20);
GUILayout.Label("Are you sure?");
GUILayout.BeginHorizontal();
if(GUILayout.Button("Yes")){
PlayerPrefs.DeleteAll();
Sceen=1;
}
if(GUILayout.Button("No")){
Sceen=1;
}
GUILayout.EndHorizontal();
}
}
}
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.