Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

About Saving PlayerPrefs after Updating

A topic by RRDito created May 26, 2021 Views: 173
Viewing posts 1 to 1
(+1)

Hi, I have a game (developed in Unity for WebGL) that is played in the browser. When I update the game, the PlayerPrefs get erased (which in my game means that the preferences get reseted but also the progress from the single player campaign).

I did a little experiment, uploaded a new build of the game but kept the old. So when I play the new the Prefs are blank, but if I go back to the old one, the prefs are intact. So it seems that the prefs are linked to that specific file. I tried then just rewriting the old file (that is, upload the new one with the same name as the old one) but the Prefs got erased as well. 

Is there a solution to this (uploading a new version but leaving PlayerPrefs intact)?

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.