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
- Trail Renderer visual doesn't match the positions of vertices when they have been offset
- [Mobile] The Material is not visible when using the Decal Renderer Feature
- Uncaught TypeError: Cannot read properties of undefined is thrown when the tab is inactive for several minutes
- Crash on mono_array_length when building a project
- "StackOverflowException" error when changing spline curve type from "Bezier" to "Auto" in the "Element Inspector"
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.