- Home /
Question by
harrietradcliffe · Sep 12, 2013 at 01:08 PM ·
updateplayerprefsscore
Score not updating...
Hi! So we're using playerPrefs on our total score. Our problem is everytime we play our game it doesn't update its score. It only updates when we re-play our scene... what do you think is the problem?
Comment
Answer by robhuhn · Sep 12, 2013 at 01:10 PM
That's the intentional behavior. If you write something into PlayerPrefs it saves on application quit. Call Save() to store the values immediately: http://docs.unity3d.com/Documentation/ScriptReference/PlayerPrefs.Save.html
Your answer
Follow this Question
Related Questions
Score System help 1 Answer
[Problem] Use Playerpref.GetInt in other thread 0 Answers
Highscore GUI not working properly help 0 Answers
PlayerPref set int and get int 1 Answer
GUI.TextField problem, won't update var. 0 Answers