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
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
Add comment