Hi!
I'm using Unity 5.4.0b17, and I can't get PlayerPrefs to save when hosted. It works locally, but from my webserver, it doesn't.
m_savedData.SetDefaults();
base64EncodedSettings = GetBase64EncodedSettings();
PlayerPrefs.SetString(m_settingsKey, base64EncodedSettings);
PlayerPrefs.Save();
GetBase64EncodedSettings returns a string generated by encoding m_savedData. I don't see any errors in the webconsole. Here's a link to the program in question:
http://www.maniac-games.com/Prototype/Cognizer-Free/
To test the save, the easiest thing to do is go to Options, and adjust the sound volume, then restart the game. You'll see the setting is not saved.
↧