(some) export variables not present in exported game build

Godot Version

v4.6.1.stable.mono.arch_linux [14d19694e]

Question

I have an export variable that is set to a TextureProgressBar in the first screenshot below. This exported variable is set properly at runtime in the editor, but not after exporting the game to an executable file. I am absolutely stumped here…

As you can see on the rest of the provided screenshots, the same code produces different results in the editor and in the exported build.

image

image

image

is this a CSharp moment?

The biggest problem here is the inconsistency, since most exported vars work, but just some don’t.

Would be delighted if someone could lend me a solution or some advice! Cheers!

I found the solution myself! :slight_smile:

Deleting the .godot/ folder and then rebuilding everything fixed it. Probably some kind of build caching issue if I had to guess