Hello everyone.
I am having a hard time getting my UI to work.
Basically I have a canvas with a UI image that is the size of the screen. This image has raycast enabled and if effectively receiving inputs.
Not in the canvas I have a sprite that have a 2D collider attached to it. No matter what I try, the UI image is always consuming the input event when I click on the sprite.
When I disable the image, the sprite gets the events, so the setup looks right (camera with Physic2D raycaster for the sprite, layerMask set to the layer of the sprite, canvas with Graphic raycaster for the image, no blocking object, no mask).
What do I need to do so that the sprite gets the input event BEFORE the image and consume it?