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
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
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.