How can i have the same textsize for all resolutions

Hello,

I came across a problem that i cant thing of any way of fixing it.

Basicaly i want the text of my game to scale on every diffrent resolution but withouth textscaled on because it makes some texts bigger and some smaller.

Here are some pictures(the text that i am focusing are the “-----------” on the middle of the ui):
– Resolution 1280x720

– Resolution 1920x1080

How can i make the textsize be always same.
Is there any way of achieving this.

Any suggestions whould be greatly appreciated!!!

For this horizontal line, you should do this:

LineBreak.Text = string.rep("-", 300)
LineBreak.TextWrapped = false
LineBreak.TextScaled = true
LineBreak.ClipsDescendants = true

This should make the line stretch to whatever size it is.

For the other UI, just use TextScaled.

1 Like