Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Bot7 |
I am trying to check if a variable in the same scene has a spesific value but it doesnt work
if $UI.change_Camera == false:
print(“hello World”)
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Bot7 |
I am trying to check if a variable in the same scene has a spesific value but it doesnt work
if $UI.change_Camera == false:
print(“hello World”)
Reply From: | code |
First question is that code you wrote contained in the parent that contain the node
If it is not a parent but a fellow child of the parent then use something like this
get_parent().get_node(UI).change_Camera
It works! Thank you for your answer.
Bot7 | 2021-03-02 22:32