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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
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.