Hi, I’m new to unity and am working my way through the BurgzergArcade.com is for sale | HugeDomains series
Ep 29 is about saving Player Prefs, I don’t get errors however nothing appears in the ~/Library/Preferences folder.
Is there a way to log to the console if the save command succeeded or not? Sorry for the beginner question.
I call the following to save:
public void SaveCharacterData() {
GameObject pc = GameObject.Find ("pc");
PlayerCharacter pcClass = pc.GetComponent<PlayerCharacter>();
PlayerPrefs.SetString("Player Name", pcClass.name);
PlayerPrefs.Save();
}
Even dumbing down that function to
PlayerPrefs.SetString("Player Name", "test");
PlayerPrefs.Save();
Has no effect.