Search Issue Tracker
Fixed in 2018.3.X
Votes
0
Found in
5.6.1f1
Issue ID
912396
Regression
No
Raycast hits ignores 2nd Canvas which is drawn in front
Steps to reproduce:
1) Download attached project 'Canvas Sorting.zip' and open in Unity
2) Open scene 'test' and press Play
3) Hover mouse cursor on white image, then on GUI text
Observe result on the screen:
The raycast hits the text when the mouse is over the text, and the background when mouse is over the white image (check attached gif 'works.gif')
4) Hover mouse on the blue side
Observe result on the screen:
The raycast always hits the background (check attached gif 'doesntWork.gif')
Expected result: When there are 2 Canvas, raycast should hit object which is drawn in front instead of whatever canvas object is deeper in its hierarchy
Actual result: When there are 2 Canvas, raycast hits object which is deeper in its hierarchy
Reproduced with:
5.5.3p3, 5.6.1p1, 2017.1.0b6
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
Add comment