Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: cb on September 19, 2013, 03:50:29 PM

Title: PlayerPrefs update/sync ?
Post by: cb on September 19, 2013, 03:50:29 PM
I have a basic save-slot GUI component in my game. It shows the players name, saved under PlayerPrefs.
Tapping on the name GUIButton takes you to another GUI with a Textfield, allowing you to enter a new name.
This is then saved, via an input String, to PlayerPrefs. The original GUI (showing the name) is then returned to, and shows the newly input name. At least it does on my Mac, on my Blackberry device it shows the previous string saved in the PlayerPrefs.
 So for example, the save-slot GUI shows the string Player1. I then tap it, enter Player2 into the TextField, on Enter it returns to the save-slot GUI but still shows Player1. Tap it again, Enter Player3, on returning to the GUI it now shows Player2. It's always behind by one entry.

This happens only on my device, it works ok on my Mac and updates with the latest input string   :-\

Anyone ??
Title: Re: PlayerPrefs update/sync ?
Post by: Alex Chouls on September 19, 2013, 04:44:07 PM
Strange... you could try inserting an extra PlayerPrefs Get String before displaying it, to make sure you have the most recent value...