Search Issue Tracker
By Design
Votes
0
Found in
2019.1.0a5
2019.1.14f1
2019.2
2019.3
2020.1
Issue ID
1202907
Regression
Yes
UI Raycast doesn't hit the object which is drawn on top
Steps to reproduce:
1. Open attached project
2. Open SampleScene and enter playmode
3. Click on the button and verify that it works
4. In hierarchy, disable and re-enable UIRoot>TestPopup object
5. In scene view, try clicking the button
6. Notice that it doesn't accept clicks
7. Select UIRoot/EventSystem object
8. Hover the button
9. Notice that current raycast is ClickShield object even though button is drawn on top of it
Expected behaviour: raycast hist object which is rendered on top
Reproduced with: 2019.1.0a5, 2019.1.14f1, 2019.2.15f1, 2019.3.0f1, 2020.1.0a15
Not reproducible: 2017.4.35f1, 2018.4.14f1, 2019.1.0a4
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note (2020.1.X):
The issue can be fixed by adding a Graphic Raycaster in the root level. From a performance standpoint having 1 graphic raycaster at a root level is more efficient.