How to detect if the device is HD 1080 or a average laptop

I’ve encountered an issue where, when my textSize is set to 50, it looks absolutely fine on an HD 1080 display:

image

but not on a average laptop:

image

The best way to fix this for an average laptop is by setting maxTextSize to 35:

image

But then it looks off on an HD 1080 display:

image

So, i wanna make a script (or anything) that can detect the specific device the player is using, rather than just identifying whether they’re on a computer or a phone, since my game is for computers only. However, I don’t know how to do this.

Can anyone help? thank you

Hello! You should use camera for this sort of detection.
Something like this : CurrentCamera.ViewportSize. (docs) :smiley:

1 Like

Thank you! ViewportSize actually helped me in my script, it works now

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.