Search Issue Tracker
Active
Under Consideration for 6000.2.X
Votes
1
Found in
6000.2.0a8
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.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Text is unreadable when DLSS is applied to the Canvas with Render Mode set to World Space
- NullReferenceException errors appear in the Console when changing the values of Visual Effect Control Clip Events' Attributes
- Crash on TextCore::OTL_TableReader::GetOpenTypeLayoutTables when using Japanese Font as TMP Fallback
- TreeView.AddItem performance regression when opening EditorWindow
- Shadows are not visible in Player when using DX12 with Forward+ or Deferred+ rendering in URP
Add comment