{SOLVED} get_node result null

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

Sorry for my terrible English therefore a picture.

Window_control is from type control
WindowFrame is from type nine Patch
Title is from type Label

:bust_in_silhouette: Reply From: GodotNoob999

I have made a scene according to what i can see on your picture. It worked fine. here is the code:

extends Control 
onready var titel_node = $WindowFrame/Titel

func _ready():
    set_title("text")

func set_title(t):
    var titel = t
    if titel_node == null:
            titel_node = $WindowFrame/WindowFrame/Titel
    titel_node.set_text(titel)

Does this work? If not, consider making the scene again

Thanks.
I had making the scene again. No change.
I change the computer this work.

MakLinux | 2018-04-24 12:12