I was just making a dialogue box and I realized, “hey, there should be a plugin to convert offset to scale.” So I just made that…
If you have no idea what this means, it basically allows your UI to size by a percentage of the screen, rather than an amount of pixels. This is absolutely great to do, and it’s strange that Roblox UI doesn’t do this by default.
With this button, making your UI compatible with all screen sizes is just one click away. Here’s a video of the plugin in action:
This plugin is extremely simple. Here are the steps:
- Get the viewport size
- Loop through each selected object
- The most important part, divide
offsetX / viewportXto get a decimal that you can use as a scale value (repeat step for Y)
- Set the size to the scale values.
Try it out yourself: Convert Offset Sizing to Scale Sizing - Roblox
Thanks for reading!