- Home /
PlayerPrefs in WebGL not saving or deleting
After a while the game was working fine in WebGL, suddenly the PlayerPrefs got "stuck" in a particular state. I'm writing and deleting, and saving values, and get no errors that i can see in the browser (chrome). But after i refresh the browser, i still get the same state as it was before.
The different keys are independent, and should not effect each other, none of them is saved in the new state. The game works fine for other users and on different browsers. It looks like a hard to catch/reproduce bug.
I've tried adding PlayerPrefs.Save() after each modification, it didn't help. Another team member had similar issues, but we assumed it was something else. After changing the keys names, it worked fine for him, but i'm afraid it will happen to a live user. I can change the keys names in my version, but i'm afraid to lose the reproducible bug.
Any ideas?
Answer by MGames · Dec 08, 2017 at 01:18 AM
Hey i havent an answer but im having this problem as well!... if you do fix it please email me jmprsh153@gmail.com ... i will also report back if i find a solution :)
Your answer
![](https://koobas.hobune.stream/wayback/20220612094957im_/https://answers.unity.com/themes/thub/images/avi.jpg)