- Home /
Question by
Taylord303 · Nov 19, 2012 at 06:29 AM ·
androidplayerprefssaveload
PlayerPrefs don't load again after Android game closes for the first time.
I'm having a problem with PlayerPrefs in my android game. I have no problem when I save and go to the menu, and they load fine if I go back to the game from the menu. But if I quit the game entirely, and then start it up again, the PlayerPrefs are not loaded and the game starts off as if there is no saved data. I would appreciate any help. I can post the code I'm using if it will help solve the problem.
Comment
Please post the code including the parts where you call PlayerPreds.Save.
Answer by Paulius-Liekis · Nov 19, 2012 at 10:34 AM
Did you call Save? (http://docs.unity3d.com/Documentation/ScriptReference/PlayerPrefs.Save.html)
Yeah, and it works fine, until the app closes, then the saved data is deleted for some reason.