Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot raycast though unmasked areas #226

Open
PalaNolho opened this issue Jan 30, 2025 · 1 comment
Open

Cannot raycast though unmasked areas #226

PalaNolho opened this issue Jan 30, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@PalaNolho
Copy link

PalaNolho commented Jan 30, 2025

Not sure if it's a Bug or Feature request.

It's not possible to raycast though the mask subtract.

Imagine that you have a mask that occupies the whole screen and then you have inside an dark color image to dim the screen.
Ans them under it you have Masking shapers (Subtraact) to remove certain areas of the mask that you want the user to see underneath and you want the user to be able to click on what behind

At the moment it doesn't seem to be possible.
The only way to make it happen was uncheck the "Raycast target" from all images from the mask, which beats the purpose of not allowing to click where the mask is in place.

The way I see it should work is:

  • if it's masked, block raycast (or not) based on the raycast flag on the image
  • if not masked (or masked with subtract) then it should not block raycast (or it could still use the flag on that image to control it, but it should be possible to choose to not clock in those areas

thanks

(in the image below, the grey is an image stretching to occupy the whole mask and the white are the maskable objects set to subtract)

Image

Image

Image

Image

@PalaNolho PalaNolho added the bug Something isn't working label Jan 30, 2025
@mob-sakai
Copy link
Owner

mob-sakai commented Jan 31, 2025

Thank you for your reporting!
Try this: CanvasTest.unitypackage.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants