Hello there encountering some issues with saved variables in my WebGL build and hoping someone can help!
The issue is very simple and is reproducable in a barebones project (happy to provide a zip if needed). Any time i change a saved variable in my WebGL build it is never persisted on page refresh. I created two simple projects which increment/decrement a saved variable, one using Bolt and one using a MonoBehaviour script. They both work as expected on every platform I've tried (standalone, Android, in-editor) except WebGL, where the bolt version fails to persist the value, but the MonoBehaviour version succeeds. I've been sure to run AOT Pre-Build before my WebGL build with no difference in behavior.
Here is my bolt graph for setting the variable:
I even attempted an explicit call to PlayerPrefs.Save() after the SetVariable call to no avail. My guess would be the issue is either the saving code inside of Bolt, or perhaps the code which detects and resets saved variables to their initial value erroneously firing.
Thanks in advance for any help!
Customer support service by UserEcho