Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4
2020.1
2020.1.0a22
Issue ID
1215883
Regression
No
HandleUtility.GUIPointToScreenPixelCoordinate has an offset in height when used in Game View window
To reproduce:
1. Open attached project ("case_1215883.zip")
2. Press Play and move your mouse in the Game View
3. Observe the red circle position
Expected result: Red circle stays directly on the mouse
Actual result: Red circle stays below the mouse
Reproducible in: 2018.4.17f1, 2019.2.20f1, 2019.3.0f6, 2020.1.0a22
Could not test in: 2017.4.36f1 (Due to errors in the project)
Note: A horizontal offset also appears when changing the Game View resolution
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
- “STP” in Project window > Advanced Upscalers by Priority menu list is shown as available to add when it is already added to the list
- Rename fails with an error “Canceling DisplayDialog” when renaming a Mipmap Limit Group in Project Settings > Quality after adding a new group
- Obsolete API warning CS0618: 'HDAdditionalLightData.SetIntensity(float)' is thrown when installing “Output Event Helpers” Samples to the project
- Misaligned “Show Property Gizmo” and affected “Color” field in Inspector of a VFX Asset
- UIElements Style.translate is shifted down on the Y axis when in Play Mode
Resolution Note (2020.1.X):
The issue is coming from the use of Event.current.mousePosition in game code. For the GameView in play mode, Input.mousePosition should be used instead.