Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | jjphung | |
Old Version | Published before Godot 3 was released. |
I am trying to hide/show a “Menu” Panel. How the nodes are structures is: Root “World” Node2D then the rest of the nodes are all children of “World.” The children are: “Background” Panel, “TextureButton” TextureButton, and “Menu” Panel. I have 2 scripts: 1 attached to the root node and the other script attached to the TextButton.
Under the _ready
function in the root node I have get_node("Menu").hide()
which successfully hides the panel. For the other script I have get_node("Menu").show()
under _pressed
, but it is giving the error in the title.