Hello everyone. I have created HUD for my 2D game and I have put game aspect ratio to "Expand" . It works all fine except that CanvasLayer is not expanding its on half of the screen while everything else is expanded. How can I fix this?
When you click on the layer to select it, there is a tab at the top tool bar called layout. At the bottom of that list, when you select it, is a choice called "full rect"
@fire7side said: When you click on the layer to select it, there is a tab at the top tool bar called layout. At the bottom of that list, when you select it, is a choice called "full rect"
Hmm CanvasLayer does not seem to have that or I just can't see it. But I can see the "Layout -> Full Rect" option on a Label for example but not on CanvasLayer.
In the image is an example of how it looks like.
Hmm, I thought it did that for all control nodes, but apparently not. The control nodes inherit from canvas layer. If you added one, it might do it. Or perhaps saving it as a scene might be stopping it from stretching. Sorry about that.
The CanvasLayer should automatically be the full size of the screen (and expands if you change the window size). However, the elements inside it need to be Controls with the proper settings to be dynamic.
Thank you all :)