I’ve created an “inventory” UI on the bottom of the screen similar to the default roblox inventory UI. The problem is the default UI is good with scaling the screen on the x axis, mine isn’t.
I’ve been trying to use UIAspectRatio and the SizeConstraint property (using YY instead of XY) of the frames to try to achieve this scaling on different resolutions, but both solutions have either shrunk my UI or mispositioned it (no longer placed in the center)
Below is what the default resolution looks like (looks fine):
I am not sure how others do it, but for the UIs that I make, I change the size to 1,0,1,0 and then free scale it from there. If you are wanting to change the size from the property instead of free scaling then make sure to change the numbers on the left. Example {0.5, 0},{3, 0}. And make sure the position is the same.
X axis does not really matter in much cases, most monitors/devices keep a ratio on there resolution. They don’t really have a big x axis and small y axis. Most of them has the Y Axis bigger than the X axis. But I do agree it looks bad like that, but tell me one device that has a resolution thats the same as what you are showing me.
I believe its still a fairly relevant problem, and I feel the fix should not be terribly hard.
And that solution does not work, just tried it, it scales my inventory worse than the UI aspect ratios did.