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
2k stars 262 forks source link

Masked elements randomly disappear (EDIT: not randomly, it occurs when create a object with TMP) #180

Closed ryushinnn closed 1 month ago

ryushinnn commented 1 month ago

Describe the bug Object A has SoftMask component, showMaskGraphic disabled. Objects B,C,D are children of A and they disappear randomly. If I enable showMaskGraphic and then disable it again, B,C,D are visible now.

To Reproduce Steps to reproduce the behavior: It occurs randomly so I don't know how to reproduce it

Expected behavior B,C,D are always visible

Screenshots When the problem occurs: image

After I enable and disable showMaskGraphic (expected result): image

Environment (please complete the following information):

ryushinnn commented 1 month ago

update:

The problem occurs every time I create a new child of A and it has TMP component. Disable and enable SoftMask component of object A again also brings back B,C,D's visibility

mob-sakai commented 1 month ago

Thank you for your reporting! Could you please attach a minimal project (included Assets, Packages and ProjectSettings directories) that reproduces the issue?

repos

cdanek commented 1 month ago

I can add a repro process for this:

Create a SoftMask GO, nest a GO with an Image (sprite). Move the child object, then undo. The image disappears until an update of some kind is forced in SoftMask.

mob-sakai commented 1 month ago

@cdanek

Thanks, it is reproduced on my environment. I will fix it.

mob-sakai commented 1 month ago

@ryushinnn I would like to know more about this issue.

The problem occurs every time I create a new child of A and it has TMP component. Disable and enable SoftMask component of object A again also brings back B,C,D's visibility

Does "A new child of A" has SubMeshUI? In other words, does it use fallback material or tags such as <sprite>, <material>, <font>, etc. for text?

github-actions[bot] commented 1 month ago

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

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] commented 6 days 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: