maybe a stupid question
my mind will sooner or later catch up
but will a canvas always be full screen or can you set the size of a canvas
i tried to see if you can change the size of the canvas but did not see anything relevant to that
There is no such thing as Size of Canvas. There is only Desired Size of a widget. This dropdown is a preview size and has nothing to do with widget size or canvas, have a look:
Canvas is not special in that sense, it’s just a widget that is really good at working with widgets that are inside of it. It can anchor them, for example - but something else still has to tell the canvas how large it should be. Unless told otherwise, container widgets will take all the space they can. Lets say you make a Size Box:
Note the green frame . The Size Box just tells any widget inside of it to be of Desired Size 64x64. Something outer has to tell the Size Box what size it itself can become.
The Desired Size is a constant battle of Children wanting one thing and their Parents wanting something else for them.
Just like in real life
The outer size of the final widget is always up to you. When you create a 2d widget you can simply tell it what Desired Size you want it to be:
Note that we’re no longer in screenspace. These are not pixels, they are Unreal Units - centimetres. If you switch to screenspace, you get the pixels back.