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.04k stars 268 forks source link

[v1] Masked image affected by another object's mask #125

Closed swoy45 closed 2 months ago

swoy45 commented 3 years ago

Describe the bug When i'm using masked viewport with several children which are same-level in hierarchy and each of them has a soft mask they will use same-level mask buffer. Most of the time it wouldn't be noticeable because objects don't touching each other but when some of them need to be moved their masks could collapse and affect masked sprites of each other. So the option to isolate buffer layers could solve this problem.

To Reproduce Steps to reproduce the behavior:

  1. Create parent container with soft mask.
  2. Create children with soft masked sprites inside each of them.
  3. Move children close to each other so masked sprites affected by another object's mask.

Expected behavior Ability to control layers in mask buffer.

Screenshots image image

Environment (please complete the following information):

marcelopapelgames commented 1 year ago

Same issue with me.

The parent circle SoftMask is affecting the parent image (yellow bar), allowing it to show the child image (owl).

The yellow bar covers completely the bottom part of the owl: Pasted Graphic 1

With the SoftMask, part of the yellow bar is made transparent, showing parts of the owl : image

raaan127 commented 3 months ago

Hi, I'm also experiencing this bug while trying to use multiple nested softmask, I'm using 1.0.2 ảnh

I tried on DemoScene (Duplicate a nested softmask within parent mask) and this also happen. ảnh

mob-sakai commented 2 months ago

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