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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Add comment