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.
When I generate the build and play, this is what I get:
Another example is this shield resistance bar. In the editor:
And the build:
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?
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.