Phone Physical Display Size?

Is there a way to know the physical size of the phone display?

…I’m not quite sure what you mean…

Like in real life? Or what each Unreal Unit stands for? Or what?

Hey Villason,

I’m not quite sure what you’re asking in regards to the physical size of the phone display however, you may find this [thread][1] to be useful. As it explains in full detail about Unreal units to cm. Now, if you’re asking about what display size a phone can handle, you’re likely going to need to look up the model of phone that you’re planning to work with and see what their display size actually is maxed out at.

If you have any further questions, please reply back to this thread.

Thanks!

One unit equals 1 cm but is it usefull? - Pipeline & Plugins - Epic Developer Community Forums

Hi,

I am intersted in knowing the actual real screen size in order to properly scale my UI.

At the very 720p resolution, there are phones with 4" and 5" displays.

Regards.

Real life so I can scale my UI properly, not only based on resolution.

Hey Villason,

Please review this [link][1] regarding DPI Scaling. You can simply go into the Project Settings within the Editor and select the Rendering section. Under UI, you’ll be able to choose the size of DPI.

Thanks!

DPI Scaling in Unreal Engine | Unreal Engine 5.1 Documentation

I know but that has nothing to do with DPI. The concept is wrong in UE4. That curve is only related to resolution regardless of the physical dimensions of the display.

I want “figer sized” icons regardless of the player using a 24" display at 1080p or a 5" display at 1080p. That curve won’t fix it.

Hey Villason,

Is this the sort of thing you’re looking for? layout - How to get screen dimensions as pixels in Android - Stack Overflow

No, something like:

We have found that the Android dimensions that are reported aren’t very accurate, but you can use them and hope :slight_smile: We don’t have a way to get those numbers directly into Blueprints tho, that I can think of. I’ll check around to see if there’s something.

I assume Android and Apple demand phone manufacturers to hardcode the value somewhere so they can return it with their APIs.

Hey Villason,

I searched around on the internet for you and found the following websites. I can’t say for certain that they’re what Josh Adams was referring to, or what you’re explicitly looking for however, here they are:

[Android Lollipop][1]
[Android KitKat][2]
[Android Jelly Bean][3]
[Android Ice Cream Sandwich][4]
[Android Supporting Multiple Screens][5]
[iOS Developer Center][6]
[iOS 8 for Developers][7]
[iOS Developer Library][8]
[iPhone Resolutions][9]

Hopefully some of these links will help you obtain the goal you’re striving for. If you have any further questions, please let us know.

Cheers!

Android 5.0 APIs  |  Android Developers
[2]: Android 4.4 APIs  |  Android Developers
[3]: Jelly Bean  |  Android Developers
[4]: Ice Cream Sandwich  |  Android Developers
[5]: Screen compatibility overview  |  Android Developers
[6]: Sign In - Apple
[7]: iOS 16 - Apple Developer
[8]: Documentation Archive
[9]: The Ultimate Guide To iPhone Resolutions

You can just let the pick the size and solve all problems at once, no?

Nope because they can cheat that way.

Is there anything new on this? My app uses totally different widgets for phone and tablet, and I’m looking for a way to detect which one should be used.

No, comment still stands. Please submit a new AnswerHub if you have any further questions.

Thanks! :slight_smile: