12 lines
179 B
GDScript
12 lines
179 B
GDScript
extends Viewport
|
|
|
|
|
|
func _ready():
|
|
get_tree().get_root().connect("size_changed", self, "adapt_resolution")
|
|
|
|
adapt_resolution()
|
|
|
|
|
|
func adapt_resolution():
|
|
size = OS.window_size
|