How do I scale UI Items

I use UIAspectRatioConstraint to scale frames, textlabels and textbuttons, but this doesn’t wok for UIStroke and UiBorder. This is a problem, because on smaller screens Uistroke appears to be more thick (porportions) as compared to larger screens.
Screen Shot 2022-06-03 at 10.40.08 AM
Screen Shot 2022-06-03 at 10.40.18 AM
Comparison

Im not seeing much of a difference in stroke on mine when i use the UIStroke and UIAspectRatio, look:


Get this plugin: [Plugin] AutoScale Lite for GUIs - Scale your UI

It should help you a ton, this scales your UI automatically when its selected.

Well it doesn’t work solely because there is no offset or scale in a UIStroke.
It will be said pixels on every screen due to this.

Also not a very good method as you can just attach a mouse or keyboard to a mobile device after the game is run.

Kind suggestion to read entire posts before recommending them.

It’s super frustrating that the code in the post above keeps getting quoted even though it says this is poor practice. Do not use this code, your UI/inputs should dynamically react to changing input modes and screen sizes.

EDIT: added a spoiler to the post above so that the code isn’t as visible.

2 Likes