Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 6 years ago
Edited 6 years ago

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]

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 BlackOrange3343 2676 — 6y
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? jack001214 19 — 6y
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. Creeperman1524 120 — 6y
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 ... jack001214 19 — 6y
View all comments (4 more)
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 BlackOrange3343 2676 — 6y
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. Creeperman1524 120 — 6y
0
Yes i fixed ALL the offsets including the ones inside the frame. Thanks guys :D jack001214 19 — 6y
0
Add [Solved] in your title if your question is solved Zafirua 1348 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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

Ad

Answer this question