Search Issue Tracker
Third Party Issue
Votes
1
Found in
6000.2.0a8
6000.3.0b2
6000.4.0a1
Issue ID
UUM-109560
Regression
Yes
[SDL Platforms] Screen.dpi is Always Returning 0
Steps to reproduce:
- Create a Unity project and add a Monobehavior that prints the value of Screen.dpi
- Build and run the application on an SDL platform (Linux, EmbeddedLinux, or QNX).
- Check the DPI value of the display.
Actual results:
DPI is 0.
Expected results:
Screen.dpi should be set to the correct dpi value of the display.
Observations:
- _SDL_GetDisplayDPI_ returns false and while defaulting dpi values to 0.
- This bug does not happen on Linux using Wayland.
Reproducible with versions:
Reproduced on Unity 6000.2.0a8 and 6000.3.0a1
Tested on (OS):
EmbeddedLinux (using X11 and Wayland)
Linux (using X11)
Not yet tested on QNX.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
Resolution Note:
This is a limitation from SDL on EmbeddedLinux and QNX (SDL_GetDisplayDPI returns false with dpi 0 as output). It depends on the system and compositor being used.
This however is not reproduced on Linux with wayland.