Hello, I have made a plugin widget, however there is a white background around it, how would I do this? I thought about automatically resizing it to fit when it is expanded, but I dont know how to do that.
This is most likely happening because your UI for the widget isn’t correctly scaled
Just set the background frame size for your UI to something like {1, 0, 1, 0}
, it auto-scales when the widget is resized.
When I set it to that, I just get this
do I have to redo my ui inside of the widget? I was doing it all in studio first
You don’t, I recommend making a base frame that that rest of the UI is a child of and set that size to {1, 0, 1, 0}
then organizing your UI from there. An alternative would be to create a background frame that covers the white part of the widget
Thats what I did
First solution or the alternative solution?
First solution, problem with the 2nd is I want it to take up the whole thing, not have the ui be 10% of the screen and the rest be just the same color as the background if you know what I mean
Ok so, I assume it’s the UIAspectRatioConstraint
instance, have you tried removing it to see if there’s a difference? or did you add it afterwards? Also, what I meant by the first solution was making a new test screen gui and frame, inserting your UI in that and redesigning it to fit from there instead of using the widget to test the UI’s scale. Then insert it back afterwards. As a widget is practically a normal frame just not within roblox studio
I tried removing that, does nothing.
I will just mark this as a solution for now and redo the ui