Mobile UI Scaling Support

Ok i will try it out now. Thanks for replying Literally this fast, tho.

3 Likes

i am kinda uh new? to this UI design or somethin’…
What kind of Scale are you talking about?
Sorry but i really dont know about that

1 Like

When you look at the position or actual literal scale of a ui element, the values show like this:
{Scale, Offset, Scale, Offset}

You’re using offset for the values, use scale instead.

ohhhhh I see I didn’t know about that :blush:

1 Like

image
hmm this… both are the same value but it isnt showed properly as well, How am i going to handle this? Do i need to set something up?

Um or is that i didint understand what you said at all?

1 Like

You’ll have to use scale instead of offset to position the ui elements as well as for the size of the ui. Just set the values randomly and see how they react.

Basically, mess around with it.

1 Like

The robloxdev website has a great guide explaining how to scale GUIs, use offset, etc, this should help you achieve proper screen to screen scaling:
https://developer.roblox.com/en-us/articles/Intro-to-GUIs

1 Like

I will read it now then. Thanks!

1 Like

okay i will try it out! Thanks!

1 Like

No problem, also if you want to scale text, there is a “TextScaled” boolean you can enable in a TextLabel’s properties, as well as “TextWrapped” if you want the text to span multiple lines.

1 Like

I know that from earlier. But uh thanks for telling me it. Then

1 Like

My bad, it just looked like your text was overly sized, which is probably from the size of the TextLabel itself, just wanted to add some extra advice if you didn’t know. :sweat_smile:

Thanks for helping me anyways! :happy2:

2 Likes

uh there is an issue, the post said:

but when i tested it out it went like this:
it didnt on mobile as well, is it a problem on my end?

You’re still using offset for the size property, also change the anchor point to be 0.5, 0 (that should fix it I think?) Or 0, 0.5

1 Like

i will try that out right now, thanks for helping

When i set the anchorpoint to 0.5,0 it worked perfectly fine in PC view, but it does not work on the Mobile view, any solution for that?

Hello! Maybe you’re using the plugin in the wrong way (happened to me). Here’s a post created by @ZacBytes (the creator of the plugin) about how to use it!

I hope it helps!

  • Dvd

just use scale this SHOULD work

offset = pixel resolution = NOT good if you want to support devices with a big difference reolutions

UIAspectRatioConstraint, AnchorPoint and all of this would never help