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
- Adaptive Probe Volume “No Adaptive Probe Volume in Scene” warning is shown only on the first time and is never shown again when baking the Adaptive Probe Volumes with all the Adaptive Probe Volume components disabled
- “NullReferenceException” thrown in Console when changing Profile field to ‘DefaultLookDevProfile’ in Lighting window after deleting Directional Light
- "GardenDraft_LightingSettings" Asset is included in the URP Sample Template
- “Releasing render texture that is set as Camera.targetTexture!” Error thrown in the Console when undoing/redoing Camera addition in Graphics Compositor window > Render Schedule list
- The cursor moves into wrong place when renaming folder/asset
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.