Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.0f1
2018.4.0f1
2019.1.3f1
2019.2.0a1
2019.3.0a1
2020.1.0a1
Issue ID
1179396
Regression
No
Event.mousePosition returns incorrect mouse position when using OnGUI() in a custom Editor window
How to reproduce:
1. Open the attached 'Bug Report IMGUI.zip' project
2. In the Editor select 'BUG REPORT' > 'Bug Test Window'
3. Drag the cursor to the 'Bug Test Window' window and press CTRL + C keys
4. Observe the Console window
Expected result: actual mouse position (in the 'Bug Test Window' window) is printed
Actual result: mouse position has no impact on the printed message
Reproducible with: 2017.4.32f1, 2018.4.8f1, 2019.2.4f1, 2019.3.0b2, 2020.1.0a3
Note: the printed message returns one of the following values: (0.0, -19.0), (-1.0, -19.0), (0.0, -21.0) and similar, depending on where the custom window is located in the Edtor
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note (2020.1.X):
LOw Priority defect, unlikely to be fix for the near future.