Scaling UI Correctly..?

Hi, im trying to make the Textlabel be viewable from all platforms.

this is how it looks like on PC:

This is how it looks like on mobile:

image
this is where the textlabel is located.

any idea how to fix this?

1 Like

you need to use the Scale instead of Offset in UDim2 which used in gui objects.

UDim.new(0,0.3,0,0.7) -- this will not scale ui correctly in other devices.
UDim2.new(0.3,0,0.5,0) -- this will scale ui correctly without any issues in other device


now it’ll just collide with other UI objects

Then add UIPadding.

Chars chars chars

You’re going to need to goof around with scale and the position to get it in the right place. Also probably set the anchor point to 0.5,0.5 depending on what youre going for

I use this plugin a lot for stuff like this - just select the TextLabel, and press both “Scale” buttons. Should do the trick!

Also - I recommend doing it to all the UIs in your game, to ensure none of them collide with each other.

yeah.thats what im using too.it scales the ui correctly.

1 Like

Ok but… where is the label supposed to go? It doesn’t seem to have much room so yeah its gonna collide unless you move it elsewhere.