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
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
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.