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
2.08k stars 269 forks source link

I just Disable/Enable the MaskShape's Parent and the MaskShape not work. #189

Closed gabrielchen0314 closed 1 month ago

gabrielchen0314 commented 2 months ago

I just Disable/Enable the object and the MaskShape not work. image Close Object image Show Object image And MaskShape not work

gabrielchen0314 commented 2 months ago

Image_SoftMask image

Image_Masking Shape image

gabrielchen0314 commented 2 months ago

if you just Disable/Enable Image_Masking Shape, Masking Shape can Work. but if you Disable/Enable Image_Masking Shape's Parent, Masking Shape not work.

bodardr commented 2 months ago

Hey so I have the same issue it seems that the parent's maskDepth is stuck at -1. I couldn't find a way to force it to 0. Somehow changing the mask parent's image alpha (edit : in the inspector) makes the mask work but I can't do it via scripting. I've resorted to another solution that doesn't use soft masks but oh well.

If a fix is found I'll try it.

mob-sakai commented 2 months ago

Thank you for your reporting! Could you please attach a minimal project (included Assets, Packages and ProjectSettings directories) that reproduces the issue? Of course, you don't need to include any secret assets from your project. Feel free to use free assets instead.

repos

gabrielchen0314 commented 2 months ago

Here MaskShape not work.zip

mob-sakai commented 1 month ago

Thank you 👍

github-actions[bot] commented 1 month ago

:tada: This issue has been resolved in version 2.3.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] commented 1 month ago

:tada: This issue has been resolved in version 3.0.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: