开发者

Unity PlayerPrefs saving

开发者 https://www.devze.com 2023-03-21 09:42 出处:网络
I use some PlayerPrefs in my Unity app (platforms are: iOS, Android, Windows).开发者_开发知识库 Now I want to release update, so it\'s a question: when users update there apps - will PlayerPrefs be sa

I use some PlayerPrefs in my Unity app (platforms are: iOS, Android, Windows).开发者_开发知识库 Now I want to release update, so it's a question: when users update there apps - will PlayerPrefs be saved? The problem is that I store the game progress in this prefs and if users will lose it after update - it will be very bad.

Is there reliable information about this question?


How will you release this update? A new version of the application, or new content streamed in through asset bundles?

If it's a new version of the application, but it's installed as an update and overwrites the old version, then playerprefs will remain unchanged. If it's installed seperately however, the saved data will be lost.

If you're using asset bundles, no worries, nothing will break. ;)


Player prefs persist if you just update the app.

0

精彩评论

暂无评论...
验证码 换一张
取 消