How to make UI offset property same size on all screens?
Hello,
Have you tried using Scale?
When looking at the position, it is something like this:
{0, 100} {0, 150}
The first value of the 2 things is the SCALE (between 0 and 1 generally) and the second is the offset.
Try changing the first value to something and see if it works
Well, it is always that amount of pixels on every screen. Your best bet is to use the UIAspectRatio control with the scale part of size.
Also note that the UI Scale/Offset converter like this one:
Would be useful for this case.
I don’t want to use the scale property because when I resize the frame it also resizes its descendants.
If you want GuiObjects to be sized the same respective to the dimensions of the screen for every device then you need to size GuiObjects using the scale components only, as offset is a pixel count which means that for larger devices (with greater screen resolutions) a pixel offset will have a less obvious impact as opposed to the same pixel offset used on smaller devices (with lesser screen resolutions), when you size/position GuiObjects according to scale they will as its name suggests scale according to the dimensions of the native device.