Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | tatubr |
how do I make the value of a variable set the text of a label?
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | tatubr |
how do I make the value of a variable set the text of a label?
Reply From: | petermoyle |
Do you mean set the text of the label to be the value of the variable?
get_node("Label").text = str(variable)
Or
Do you mean display certain text based on value of the variable?
if variable == 0:
get_node("Label").text = "Hello"