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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Add comment