How to change the resolution when maximizing

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

when i start up the game and maximize it the resolution stays the same and my game is no longer centered how can i make the game’s resolution change when i maximize

:bust_in_silhouette: Reply From: Bartosz

You fiddle with viewport resolution you could try setting vieport’s set_size_override docs
But wouldn’t setting camera’s anchor to drag center accomplish what you desire(centered screen)