I want the UI to be Stretch and everything else to be Fit.
I tried to do something (see the screenshot), but I didn’t find the right option.
In Godot 3.5.2, this is done using these settings:
Stretch Mode = 2d
Stretch Aspect = expand
I want the UI to be Stretch and everything else to be Fit.
I tried to do something (see the screenshot), but I didn’t find the right option.
In Godot 3.5.2, this is done using these settings:
Stretch Mode = 2d
Stretch Aspect = expand
You should be able to lock the UI to the top of the screen by changing the adjust mode, pivot and anchor of your gui components. Set the pivot to North, anchor to Top, and the adjust mode to Stretch.
I did it in the central screenshot. The interface looks right, but the game now looks wrong.
The fine tuning of the positions of your ui elements can be achieved like @britzl posted and for which @AGulev has added a project file.
These settings affect the nodes in the gui scene only - the default orthographic projection (stretch) hasn’t changed and so all other content will be stretched when resizing the window. To change this, you need to send a message to the render script:
I think your project is the “colourslide tutorial” - add this line to the init function of your loader.script:
msg.post("@render:", "use_fixed_fit_projection", { near = -1, far = 1 })