Answers for "godot screen resize event"

0

godot screen resize event

extends Node2D

func _ready():
    get_tree().root.connect("size_changed", self, "myfunc")

func myfunc():
    print("Resizing: ", get_viewport_rect().size)
Posted by: Guest on April-06-2021

Browse Popular Code Answers by Language