- Edited
Godot 4.4.1
I have a game which supports several resolutions as well as fullscreen (and combinations).
My project settings have resizable ON, stretch canvas_items, stretch expand.
Game defaults are fullscreen, 1920x1080. All of my graphics are sized for 16:9.
When my project starts, there is no problem. The main menu comes up and is fullscreen at 1920x1080 as expected.
I can initiate my levels, and all scaling and fullscreen etc is consistent... until I choose a button that returns to the main menu. At that point, the menu is resized to the upper left corner with the overall screen still at fullscreen.
The main menu is returned to via:
(func(): get_tree().change_scene_to_file(GLOBALS.MAIN_MENU)).call_deferred()
This is the same method that is used for all of my other scene changes which do not seem to mess up the screen.
I have tried changing the project settings to viewport instead of canvas items, I have tried keep and ignore instead of expand. I have tried explicitly re-setting the screen values when reloading the main menu.
[ETA: I removed all video setting information from my main menu and placed it in my configuration manager singleton instead. That seems to have fixed the problem. ]