Paul FELIX
Paul FELIX

Reputation: 11

How to prevent the canvas from blocking my clicks?

In my unity scene, I have two different Canvas, one is set on "Screen Space - Overlay", and the other is set on "World Space". I tried using IsPointerOverGameObject to prevent the clicks on the second canvas to go through, but the first one seems to block everything.

Here's my scene

I circled in blue the "World Space" canvas and in red the "Screen Space - Overlay" one. I need to have the blue one stop clicks from going through, but allow the red one to be clicked through.

Thank you.

Upvotes: 1

Views: 2033

Answers (2)

Louay Arafa
Louay Arafa

Reputation: 1

if you have an image component disable raycast target 1

Upvotes: 0

KiynL
KiynL

Reputation: 4266

Just disable the Graphic Raycaster Component and will fix:

enter image description here

Upvotes: 3

Related Questions