Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

[Solved]How to keep UI size Constant on all display types?

Hello, I have a UI placed at the bottom right corner of the user's display and i noticed that the size of the Frame is not Constant through out different monitors.Any ideas on how can i keep it scale it down for smaller displays instead of using the larger one?

Indented size for all displays:Perfect position for all displays

1920x1080:UI is Smaller and not in the right place

1366x768: UI is bigger and not in the right place

I have seen options on the ConstraintUI Options but got no avail on using them too. Any help would be greatly appreciated .

Roblox file [Placed Under ScreenGUI]

8 comments

0

You know how you use {0,1,0,1} instead do {1,0,1,0} note that you will have to change the number value so that it matches the screen / your desire

0

Wow! that was a a very Fast response ! Thanks! I am rather confused with the 'Scale' and 'Offset' options. Offset i assume is the number - or + from the scale (correct me if a m wrong) and Scale is the Actual scaling or what?

0

Scale is almost like a ratio to the screen size. 1 would be the entire length or width of the screen as 0 will be none of it. The offset of a GUI is the pixels that is would move. You would mostly want to use Scaling as many different players have different screen sizes.

0

its ratio.That explains alot ... i have removed all my Offsets For the position and now it behaves differently now rather keep the size fine but then the placement is wrong ...

0

For placement, change the position as {1,0,1,0} instead of {0,1,0,1} as well. I suggest always doing this for GUI's so resizing screen would update positions auto

0

If the placement is wrong, you would need to change the position of the GUI to scaling as well. I assume your are still going by the pixels on the position.

0

Yes i fixed ALL the offsets including the ones inside the frame. Thanks guys :D

0

Add [Solved] in your title if your question is solved

1 answer

use the scale part of a udim2/udim as it marks a percentage of the screen, dont do this for just the position, but also the size

This discussion is preserved as it was. New answers, comments, and votes are closed.