godot resize window code example
Example: godot screen resize event
extends Node2D
func _ready():
get_tree().root.connect("size_changed", self, "myfunc")
func myfunc():
print("Resizing: ", get_viewport_rect().size)
extends Node2D
func _ready():
get_tree().root.connect("size_changed", self, "myfunc")
func myfunc():
print("Resizing: ", get_viewport_rect().size)