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

MacOS

-

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.

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.