There are no errors. If I call get_node(path_to_node_to_which_script_has_been_attached).get_script()
afterwards, everything seems fine (function returns the correct Object ID of that script). But the functions inside that script do not "start".
Assume, that the script holds a func _process(delta)
, which only purpose is printing out "some text" to console (print("some text"
). But after I have attached that script to the node, that print("some text") won't happen. Seems like I have to press some "Activate the script" Button after attaching that script?!
I hope that makes sense, what I have tried to explain.