Search Issue Tracker
By Design
Votes
0
Found in
2017.3.0a1
2018.2.0a1
2018.2.6f1
2018.3.0a1
2019.1.0a1
Issue ID
1103664
Regression
No
[Mac] Screen width and height of a Custom Editor Window is displayed to be twice as large when it is opened on a Retina display
Steps to reproduce:
1. Add attached "TestEditor.cs" script to a new Unity Project (or open attached "Editor_Size_Test.zip" project)
2. In the top menu go to: Tools -> Test Editor
3. Make sure that "My Empty Window" is on a Retina display
4. Inspect Console window
Actual result: It shows 1200 and 800 to be the size of a "My Empty Window"
Expected result: 600 and 400 is displayed
Reproducible: 2017.4.16f1, 2018.2.18f1, 2018.3.0b12, 2019.1.0a10
Note: If Mac has external monitors plugged in when "My Empty Window" is moved to an external monitor, then a correct size is displayed.
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
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
Resolution Note (2019.1.X):
Screen.width and height measure in pixels while EditorWindow.position, minSize and maxSize all measure in points. As the result on Retina display we get 2x more pixels. Similarly on Windows depending on display scaling settings the difference between pixels and points could be anywhere up to 4x