So I’ve been trying to size windows properly over the last few days (if that makes any sense) and I’ve come across an issue. I have a frame in a canvas group that won’t resize properly. It keeps going out of the screen or becomes too short and it is possible to see the stuff behind.
If you want the blue rectangle to always have consistent padding on the edges, you have to make use of both scale and offset. For example, if you want the padding to be 50 pixels on each side, you can set the position to 0, 50, 0, 50 and the size to 1, -100, 1, -100.
I need the “WindowContent” frame to consistently stay underneath the top bar, (the gray bar with the text and three circles) and stay locked to the sides of the CanvasGroup, and bottom. (If that makes any sense)
Edit: I want it to consistently stay in that position, as well as act like this:
Sorry, I’m still confused about what the problem is . I’d advise reading through this tutorial to see if it helps your case:
If it doesn’t help, a little more elaboration would be nice. It would help if you took screenshots of how your UI should look at varying screen sizes, as well as the current state of the UI so I can diagnose the issue and propose a solution. For example: