mob-sakai / SoftMaskForUGUI

Enhance Unity UI (uGUI) with advanced soft-masking features to create more visually appealing effects!
https://github.com/mob-sakai/SoftMaskForUGUI
MIT License
1.91k stars 257 forks source link

[v1] Adding a parent SoftMask would cause raycast filter not work correctly on overlapping SoftMaskables #139

Closed SaturnusK1 closed 14 hours ago

SaturnusK1 commented 1 year ago

Describe the bug I was facing the issue reported in #109 and tried to fix it by adding the parent SoftMask but it caused the Raycast Filter on overlapping SoftMaskables not work correctly.

To Reproduce I attached a sample project to explain the repro steps. You can read the extended explanation the ReadMe file in Assets folder of the project. Basically the masked roof look like the second screenshot but the raycast area is the same as the third one.

Expected behavior The raycast filter shape should be the same as the masked shape

Screenshots image image image

Environment (please complete the following information):

SoftMaskSample.zip

mob-sakai commented 14 hours ago

Please try v2: https://github.com/mob-sakai/SoftMaskForUGUI/releases/tag/v2.0.0