RayCast hitting Button and Item behind it
As you can see with the before and after pictures After i click on the green button the item behind it is getting clicked too (the items behind don't have a button property they are getting clicked by a script using raycast) I tried giving the button a "group canvas" and enabled blocking raycast, But It was unsuccessful
I want to stop that both On "Mouse and Touch" How can i stop getting clicks through the button?
after.png
(110.6 kB)
before.png
(105.6 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613050414im_/https://answers.unity.com/themes/thub/images/avi.jpg)