How do you stop UIGridLayout from resizing itself when resolution changes?

Hey guys how do I stop the UIGridLayout in the scrolling frame from resizing when the resolution changes?

You can try a UISizeConstraint.

should i remove the UIGridLayout?

You shouldn’t need to I dont think.

should i put the UISizeConstraint under the scrolling frame?

it stil resizes on its own :confused:
https://gyazo.com/9617e66a9d438e68285549abcfdf9a26

Well did you actually set up the ui size constraint? You can give it a vector2 minimum size and vector2 maximum size.

Hey,
try to insert into children of the Scrolling Frame UIAspectRatioConstraint.

And also try to make the CellSize (can be found inside UIGridLayout properties) in Scale instead of Offset.

2 Likes

yes i placed d UISizeConstraint under the item frames
https://gyazo.com/54197884e8e12bf405be924ea59d03aa

okay lemme try thissssssssssssssssssss

this worked :smiley: thank u guys so much for ur help!!!, i didnt notice that i set the UIGridLayout through its offset instead of scaling it

1 Like