Variables values changing from editor to build

After building the app for android, initial values from some variables keep changing from the editor version.

This is how the game behaves in the editor. Notice that “Current fuel” is set to 35.

5048387--495287--EditorMenu.png

When I generate the build and play, this is what I get:

5048387--495290--PhoneMenu.png

Another example is this shield resistance bar. In the editor:

5048387--495293--ShieldBarEditor.png

And the build:

5048387--495296--ShieldBarPhone.png

Notice that the life value doesn’t change at all. In the editor all values are correct, but for some reason when the build is created these values are changed! Does anybody knows what is going on? Did anyone had this kind of problem already?

*Edit: I’m using Unity 2019.2.0.f1

Thanks in advance!

Hello! Could you please check if the player logs show any runtime errors in the build? On Windows, they can be found at “C:\Users\username\AppData\LocalLow\CompanyName\ProductName\Player.log” - Unity - Manual: Log files.

If there are no runtime errors, could you please submit a bug report with a minimal reproduction project for this issue and reply in here with the issue ID?

There is no need for a bug report, just show your code, and the results of your debugging on your Android device, either using Visual Studio step debugging or using Debug.Log and examining the device logs.

Did you eventually find a fix for this bug?