How i do to make the game resizable?

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

Hello, i am making a game that need to be resizable because if expand the window it shows thing that the player cant see.

Pls give a solution, thanks for your help. c:

:bust_in_silhouette: Reply From: Surtarso

click on Project → Project Settings → navigate to WINDOW → check “resizable”, mode “viewport”, aspect “keep”. that should keep your windows with always the same content and adjust the viewport according to any resolution, adding black bars to excess or odd resolutions.

you can try it out toggling full screen with a switch

OS.window_fullscreen = not OS.window_fullscreen

I don’t think that’s what they’re asking… they’re asking about multiple resolutions, I think.

exuin | 2021-02-16 17:10

made a more complete answer now, with those options checked the resolution should keep your viewport size (things shown) in any resolution you end up using

Surtarso | 2021-02-16 20:41

:bust_in_silhouette: Reply From: exuin

Try reading this article in the docs: Multiple resolutions — Godot Engine (stable) documentation in English