In Unity, I have an InputField calling this method for OnValueChanged:
public void SetUsername (string s) {
username = s;
print(s);
PlayerPrefs.SetString ("username", s);
}
print(s);
succesfully prints the typed text, but PlayerPrefs.SetString ("username", s);
is saving what looks like garbage data. After exiting the game, here's what the relevant line of the PlayerPrefs file looks like:
<pref name="username" type="string">ZHNmc2Rmc2FkZg==</pref>
ZHNmc2Rmc2FkZg==
isn't the string I saved...
What's going on? What am I doing wrong?