How can I change the test width and height using CODE?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MaybeAnonymous

How could I change the test width and height settings using code? I want to change from one size to another, while the game is running. I would enjoy it if someone could help me with that

:bust_in_silhouette: Reply From: exuin

Change the OS.window_size property OS — Godot Engine (stable) documentation in English