Displaying a Variable in a Label

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

How do I display a variable in a label? I tried $Label.set_text(variable) but it said that set_text() was not a function of Label.

:bust_in_silhouette: Reply From: Calinou

If your script is attached to a Label node, you shouldn’t specify $Label since you are changing that label’s text directly (and not the text of another node called Label at the same level).