Pending Review

Variable behaving differently on standalone

Alessandro 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 3

Pretty sure it's user error, but this is driving me nuts.

I have a graph that works perfectly in the editor (Bolt 1.3) but I get a different result when running the game in standalone mode.

Here's the variable and graph, looking at a saved variable called Total Coins:

When running the game in the editor, the result is as expected and the text field displays the expected number of coins. But when running the game in standalone mode or on an Iphone (After AOT pre build), the result seems to be completely off as it seems to subtract some value from 9999, then adding the amount of coins.

What am I doing wrong?

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):
Pending Review

Hi Alessandro, sorry you're having this issue.

Maybe your build already contains a saved variable from a previous run of your game?

You can try including PlayerPrefs.DeleteAll as a node in a graph and running that in your build, then restarting; that should clear any saved build variables.

Or you can go look for them manually in the Windows registry (type "regedit" in the start menu), under:


Let me know if that helps!

Thanks for the help, but I had no luck.

In Bolt I couldn't find playerprefs (Tried human and programmer naming) and on Mac I deleted all entries related to the project name in the library/preference folder, but no love...

Odd I could not find player pref as according to the Unity API that is a core module and if I look at the Bolt Options wizard that module is installed.

Hi Alessandro,

Sorry for the very late reply on this. I can find it just fine:

Can you try resetting your assembly options to defaults?