I made some UI in Figma, before importing it into Roblox Studio. I want to convert it to scale so it would look right on all devices, but after using AutoScale it came out looking horrible. Is there a good way to convert UI from Offset to Scale, while keeping the aspect ratio, but scaling to fit all screens?
My current method is taking the offset amount and dividing it by the parent’s offset size, but it’s extremely slow.
I normally do something like this:
local guiObject = Instance.new("Frame") -- your gui object here
UDim2.new(guiObject.Size.X.Offset/guiObject.Parent.AbsoluteSize.X + guiObject.Size.X.Scale, 0, guiObject.Size.Y.Offset/guiObject.Parent.AbsoluteSize.Y + guiObject.Size.Y.Scale, 0)
I’m pretty sure I took the formula from this plugin though.
The plugin significantly speeds up the work. Thank you!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.