Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | mydoghasworms | |
Old Version | Published before Godot 3 was released. |
I am creating a 2D menu with a 3D game area, in 2 different scenes.
To make the game scale on to different resolutions, I set stretch_mode
to viewport
and stretch_aspect
to (e.g.) keep_width
, which works fine in 2D.
For testing purposes, I set the test_width
and test_height
to half the actual sizes.
The problem when I run it is that, when I switch to the 3D scene, it displays a part of it in the top-left quadrant of the window, while the rest is just the edge of the scene stretched over the rest, as shown below.
How can I make everything (2D and 3D) scale to the target resolution correctly?