godot on window resi code example Example: godot on window resi func _ready(): get_tree().get_root().connect("size_changed", self, "myfunc")