UI scaling more or less properly on every resolution besides 1920 x 1080

My issue at hand is just as the title says.

I’m fairly new to properly scaling/positioning UIs.

Any help would be appreciated.

1 Like

I do not understand what you are saying but, I am assuming you would want UI to look almost the same on every screen resolution. If so, here is a solution

Hope it helps.

Oh, that exists? I’ve been doing all of that manually all my life xd

1 Like

Were you successful? Like did the Ui look good on all screen sizes?

I pretty much did what that plugin says it does through the command bar. I wrote a rather impromptu script one day and kept it on my desktop.

init = game.StarterGui.ScreenGui
for _, v in pairs(init:GetDescendants()) do
    if v:IsA("GuiObject") then
        v.Size = UDim2.fromScale(v.Size.X.Offset / v.Parent.AbsoluteSize.X + v.Size.X.Scale, v.Size.Y.Offset / v.Parent.AbsoluteSize.Y + v.Size.Y.Scale)
    end
end

Obviously it wouldn’t win any awards xd but it works fairly well for my purposes. It fixes any descendants of init to the scale they currently appear in the studio window. As for adding UI constraints, I would usually just sort out the sizes and ratio myself.

2 Likes

Thank you, it works! {{char limitttt}

1 Like

Phenomenal. I am glad it helped.