I don’t know if it is a bug or a property because I found nothing about it on the forum or on the internet.
Declare a global variable in a script located in a game object file
Print the global variable in annother script located in the same game object file It works
Now print this variable in a gui script on the same game object or a normal script located in a different game object The variable is nil for BOTH of the scripts
I looks strange that’s why I think it can be a bug, if global variables were only unavaliable for gui or scripts outside the game object file I could understand but it actually change it to ‘nil’
If it is normal I suggest to add something in the guide to warn users about global variables used in a different game object file (or make it more visible because I searched it and I could not find)
Meaning what? You started with an empty game.project in an otherwise empty folder? Or did you create the project some other way? And was the problem the “shared script state” setting or something else?