PlayerPrefs patch persistence

I’d like to find out if the PlayerPrefs are kept through a game patch operation. I have the impression that is the case, as they currently persist through a rebuild and reinstall with Xcode, but I was still wondering if somebody that has already a Unity game on the AppStore could confirm that.

Ah and I forgot: same question, but for a sync+restore operation. Imagine that for reason X, a player needs to restore his iPhone, syncs all applications with iTunes and then restores his iPhone, and then re-syncs back.

Basically, I guess the question is: is the file that PlayerPrefs saves somewhere the sync operation recognizes?

I can’t answer your second question regarding whether prefs are synced with the app, but when you download an update to an existing app, the prefs do remain.

I believe so. I found this in my MobileSync backup directory:

	<key>Data</key>
	<data>
	YnBsaXN...{snip}...
	</data>
	<key>Domain</key>
	<string>AppDomain-com.ezone.Snowboard</string>
	<key>Greylist</key>
	<false/>
	<key>Path</key>
	<string>Library/Preferences/com.ezone.Snowboard.plist</string>
	<key>Version</key>
	<string>2.0</string>

Inside that data block is a chunk of base64 text which, when decoded, contained some prefs I recognized. So it looks like iTunes is backing up my Snowboard prefs. (And Crazy Snowboard is a Unity game.)

Thanks for the information guys. That confirms what I thought. It’s great news!