Converting offset to scale with UI objects?

As the title says, is there a way to convert offset to scale with the UIPadding instance in Roblox?

Before you suggest the Autoscaleplugin series, no they don’t support conversion with respect to the UIPadding element.

Yes take the number of offset pixels you have, so lets say 25… and find the number of pixels of what you are padding, so if its a button and the button has 200 pixels on that axis, you just divide 25/200. In theory your scale should be 0.125.

You should be able to find the pixel size of the ui object in its properties.

1 Like

Thanks this got me the converted scale value.

1 Like