Search Issue Tracker
By Design
Votes
0
Found in
5.2.2p1
Issue ID
740039
Regression
No
[ContextMenu] Screen.width or Screen.height called in ContextMenu returns width or height of inspector, not width of player
Steps to reproduce:
1. Open attached project "ContextMenuBug.zip"
2. Open scene "repro"
3. Select "Cube" game object
4. Clear console
5. Rightclick on the "Test (Script)" in Cubes inspector
6. Select "Show Screen Width"
7. Notice in console that differenct screen widths are returned
8. Increase Inspectors width and clear console
9. Rightclick on the "Test (Script)" again and select "Show Screen Width"
10. Notice that width returned by ContextMenu is increased while width returned by Update is decreased
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
Add comment