Offset Converter for UIPadding, UIStroke, UICorner, and more!

We’ve all been there before:

You want to add even padding to an irregular frame. Setting the padding properties to the same value won’t work because each axis is a different size. You could use offsets, those are even, but they don’t scale on different screen sizes… so you’re left with the option of painstakingly calculating padding scales for each axis.

Versions of this problem are ubiquitous across all UI components that use offsets in some way, and while there are many auto-scaling plugins aimed at solving the problem for GuiObjects, AFAIK there are none that also work with components.

That changes now!

UI Offset Converter aims to work with all UI components, including UIPadding, UIStroke, UICorner, and all UDim(2) properties like Position, Size, TileSize and more!

Once you click the “Rescale” button in Studio’s toolbar, the plugin will automatically calculate the offset’s scale ratio relative to the parent - giving your players an uniform experience across all screen sizes.

Use the “Track” button to automatically adjust to changes in your UI without having to constantly redo the scaling (though don’t forget to turn this off when emulating).

Be advised that it currently does not work well inside elements that use padding and other components that inhibit usable space. As a workaround, try creating a wrapper frame inside your element.

7 Likes

The UIScale instance already does this.

1 Like

It quite literally.. doesn’t do everything this plugin does…?

UIScale will indeed scale these with it:

plus more.

1 Like

The purpose of UIScales is to act as size multipliers, while this plugin is for converting offsets to scales. They serve completely different purposes. I can see how you’d be confused by the name though.

1 Like

Ah I see. Why not name it something else? Everything about the post makes it look like it’s nothing to do with conversion.