Is it possible to get current display's DPI?

The topic’s name is pretty self-explanatory.

Even though there were topics like this in the past that had replies directly stating that this is not possible, Roblox found a way of doing that. As an example, here’s what the topbar looks like on high DPI settings:

image

(this is how it would look if it didn't account for DPI)

image

I have tried comparing the camera’s ViewportSize and the GUI’s AbsoluteSize; both of them returned the same exact values. I am very much stuck on this, so if you by any chance have any knowledge you can share on this, please do.

short answer: no you cant lol

Long answer:


There is already a method in place that returns the DPI scale value. Too bad it’s under RobloxScriptSecurity, meaning that developers cannot use it. Quite annoying of a situation as it’s all over CoreGui, meaning that Roblox knows it’s useful.

1 Like

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