Search Issue Tracker
Third Party Issue
Votes
1
Found in
2018.4
2019.4
2019.4.17f1
2020.2
2021.1
2021.2
Issue ID
1301925
Regression
No
Screen.currentResolution returns incorrect information on certain Macs
Reproduction steps:
1. Open the attached project "Resolution"
2. Make sure "Default Is Native Resolution" is enabled in Edit > Project Settings > Player
3. Open scene "SampleScene"
4. Enter Play Mode
5. Observe the error in the Console window
Expected result: Logged resolution matches the native resolution of the machine used for testing (shows 2560x1600)
Actual result: Logged resolution doesn't match the real native resolution (shows 2880x1800)
Reproducible with: 2018.4.31f1, 2019.4.20f1, 2020.2.3f1, 2021.1.0b5, 2021.2.0a4
Reproduced with:
MacBook Air (Retina, 13-inch, 2019), 2560x1600 display, macOS 10.15.7
Not reproducible with:
iMac (Retina 5K, 27-inch, 2017), 5120x2880 display, macOS 10.15.7
Note:
- Issue is reproducible within the editor and in a build
- With 2018.4, in the editor, the dimensions of the Game window would be logged instead of the native resolution.
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note (2021.2.X):
We are using the resolution that macOS screen resolution APIs tell us to use, and there's no way to get the real screen resolution at this point until Apple updates the APIs. We suggest enabling resolution selection in the game settings menu so that the gamer could choose a lower resolution if the game doesn't run well enough at the resolution that macOS reports.