Can't find node

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By megarubber

Hi, i’m new at godot

How I can get the node of TextBox?
The console returns errors, but the variables names are the same on node.


:bust_in_silhouette: Reply From: jgodfrey

Your script is actually ON the TextBox node itself. In that case, you don’t want the $ reference, as that’s used to access children of the current node. Since your TextBox node IS the current node, you can access its properties directly. So, instead of this.

text_box.visible = True

just do…

visible = True