I want to make a 'Computer Window' type of UI with the little icons on the top right that scales.

No worries, I have a (fake mockup) example of what I want to achieve;

As you can see, what I’d like to achieve is a UI box that can scale accordingly vertically/horizontally as needed to accomidate whatever text/screen resolution that it needs, however the ‘computer’ icons are always the top right, and are always the same size and static. How do I achieve this?

Thanks a lot!

Are you looking for windows resizeable by the user? That’s pretty complex, but I got it working pretty well, and I’d be happy to show you my solution if you want. If you’re just looking for windows that can just accommodate different sizes, and dont have to dynamically resize at runtime, I’d just create a “Header” visual element to put inside of your window, set its min and max height values to whatever amount of px you want it to appear as on screen, and then make a visual element with Grow set to 1 in the header to push the buttons to the right, like so:
8676687--1169499--upload_2022-12-20_16-32-17.png
(The label is for the title, although that’s completely optional.)

Alright, I’m gonna be honest; I have no idea what you’re referring to. Visual Element? Grow? Huh? I don’t have anything like that.

Are you using UI Toolkit or UGUI? UI Toolkit uses VisualElements, UGUI uses GameObjects. If you’re putting a canvas in the scene, its UGUI, and if you’re putting a UI Document in the scene, its UI Toolkit.

Ah I see. I’m using the UGUI. Is there any appreciable difference between the two?

They are completely different systems. UGUI is pretty antiquated, although if I’m not mistaken it’s your only option if you want world-space UI. However, for what you’re going for, UIToolkit would be a lot easier to work with. I suggest reading up on it, I made the switch and I don’t regret it one bit!