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

Editor - Other

-

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

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.