I have a two canvas in a Scene and all Canvas
are set to Screen Space mode camera render mode. The first Canvas
is the main Canvas
and has some buttons.The 'order in layer' property is 0.
The 2nd Canvas
covers the whole area of the 1st Canvas
. When you click some button on the first Canvas
,the second Canvas
will popup over the first Canvas
(order in layer is 1).
The problem is that when I touch over 2nd canvas, the raycast also hit the 1st Canvas
. How can I prevent the raycast from hitting the first Canvas
while the 2nd Canvas
(popup) is displayed on the screen?