tnz
June 26, 2025, 5:44am
1
Godot Version
4.5.dev3.mono
Question
Hello. Not sure if I’m using the correct words here, but:
Have created a scene of a control node (eg, my_button_container.tscn)
It has a simple boolean export value
I add the tscn to my main game tree
I change the boolean
The container does not have the boolean I set when I start the game
Make local, same problem
In addition, and perhaps related:
Changing the visibility in the editor is not respected - only the visibility on the container.tscn is used
This seems so basic that I must be an absolute fool. What on earth am I doing wrong here?
Thank you!
Did you make it a global? Can you share your scene tree perhaps?
tnz
June 26, 2025, 6:14am
3
Scene’s pretty complex, maybe I’ll work up a small example. Was wondering if there was just something obvious I’m missing.
By ‘make it a global’, do you mean the variable? No, it’s just an instance variable.
“make it global” like the autoload/singleton/globals system; presumably you did not in that case haha
Introduction: Godot's scene system, while powerful and flexible, has a drawback: there is no method for storing information (e.g. a player's score or inventory) that is needed by more than one scen...
Really tough to say without more info; you can use print_tree_pretty()
to get a copy-able text tree, easy to paste into the forum. You’d have to point out which node is the trouble maker though