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
- Errors are logged when importing an asset at a path with Firebase
- Entering too big of a number in 2D Renderer Lightmode Tags freezes the Editor
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
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.