Plugin widgets and sizing

Is there a way to make plugin widgets have an aspect ratio? I’ve been trying to search for this for way too long and couldn’t find anything about it.

I don’t think you can force a size on a plugin widget. You can set a minimum size when you create the widget, in addition to the default size; however, the only way you would really be able to force an aspect ratio is to use a UIAspectRatio, but it’ll only affect the contents, and not the widget itself.

If you want to enforce a size, perhaps try using regular GUIs parented to CoreGui instead? You have more control over their size this way, but they don’t integrate with Studio outside of the viewport.

Honestly the CoreGui part is a pretty good option, but in my opinion widgets are much more flexible, and i like the style widgets have overall. Kind of disappointed that it isn’t possible.

You could always mimic the widget style if you don’t need the plugin accessible outside of the viewport. I did this once years ago with a plugin I created (before widgets and themes were a thing) which mimicked the Studio interface by creating a GUI down the left side of the viewport using the same layout style and colours.

That’s a good suggestion, but in my current case it’s much more work than needed. It would have been a bit cooler if i could just add a a ratio. Thank you for the help though.