So I’m building a small test game to try out WebGL and it’s behaving differently in Chrome and Firefox when I upload it to itch.io.
In Firefox it doesn’t save PlayerPrefs but it does in Chrome. However in Chrome the up and down arrow keys will always scroll as well as control the game (though I’m not too bothered about that, my game has alternate controls). I’ve tested it in Firefox on a friend’s laptop and got the same ‘PlayerPrefs will not be saved’ message.
When I just open the index.html file in Firefox it does save PlayerPrefs.
Any ideas why this would be happening? It’s a development build if that changes anything.
I haven’t actually done any of that myself, so I’m afraid I can’t really assist you there.
I guess you’re free to implement you’re own serialization layer in JS, probably worth checking for an existing library or solution for doing that, only adding the appropriate Unity “hooks” to call into that.