![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | usurun |
How to properly instantiate a new childs for my node
func _draw():
var sourcebutton = get_node("../Source Stage")
if get_children() != null: for child in get_children():
child.queue_free()
var newButton = sourcebutton.instance()
add_child(newButton)