Help with window scaling

Godot Version

v4.6.2.stable.official

Question

I’ve made a simple initial game and noticed that when I changed the size of the screen, the game didn’t scale. After a lot of trying different things out and checking expand boxes etc. I made a new game and in the UI just put a single control and margincontainer. With both set to full rect and with the control node set to expand the game edges still don’t scale with the window. In the stretch menu, the settings are:

mode - canvas items

aspect - expand

scale - 1.0 scale

mode - fractional

I can’t think of anything else to try. Any ideas?

What do you mean by putting a control and a margin container in a UI? Is the UI a node?

Take a look here:

What’s your scene tree look like?