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

sprite broken the scroll view area #183

Closed chiangandy closed 1 week ago

chiangandy commented 1 month ago

Sorry to post again. After I solve my previous issue and run app on mobile device, it can display but when I move content in scroll view and let content to overt the viewport area it will appear the mask image over the view area. Has any idea about this? But when I run this in Unity mobile simulator, it has no this issue.

my environment. mobile device - Android on Hauwei p20 pro. Unity 2021.3.30f Dev in APPLE silicon

Screenshot_20240813_095425_com womo womoar Screenshot_20240813_095113_com womo womoar

chiangandy commented 1 month ago

append more information... mask image object setup

截圖 2024-08-13 上午10 08 38

image under mask setup

截圖 2024-08-13 上午10 08 50
Mythique commented 1 month ago

I also have issues with scroll rect since the update, and recorded a video of these issues.

@mob-sakai Let me know if you're interested in the video to help resolve the issue. I tried to send it to you privately, but I couldn't find your email address and your Twitter DM are disabled.

mob-sakai commented 1 month ago

Thank you for your reporting! I would like to know more about this issue. Could you please attach a minimal project (included Assets, Packages and ProjectSettings directories) that reproduces the issue?

repos

mob-sakai commented 1 month ago

@Mythique sakai861104@gmail.com

mob-sakai commented 1 month ago

@chiangandy Let's try how to avoid it.

I think there seems to be no problem using AntiAliasing or Normal instead of MaskingMode=SoftMasking.

Please display the red circular frame in front of the icon. It will cover the jaggies.

chiangandy commented 1 month ago

Yes, After I change the mask setting, issue is solved. So happy! Thanks for your help. Thanks a lot.

mob-sakai commented 4 weeks ago

@chiangandy That's great to hear. To further investigate the issue, could you submit a minimal reproducible project? (Of course, you don't need to include any critical assets from your project. Instead, feel free to use free assets.)

Could you please attach a minimal project (included Assets, Packages and ProjectSettings directories) that reproduces the issue? repos

chiangandy commented 4 weeks ago

basically, I just do following thing.

Set ShowMaskGraghic to false. Insert a background image under SoftMask.

and rebuild app than issue is solved. :)

截圖 2024-08-16 下午2 41 58
mob-sakai commented 4 weeks ago

@chiangandy Apologies for any confusion. What I'm looking for is a "minimal reproducible project" where the issue can be consistently observed.

Screenshot_20240813_095113_com womo womoar

chiangandy commented 4 weeks ago

"minimal reproducible project" means to provide the project content? Since it is a company's project which contains confidential data inside, it is difficult to provide partical code without sensitive data. If time is allow, I will create a new project to make issue to show, but it need time....

mob-sakai commented 3 weeks ago

Of course, you don't need to include any secret assets from your project. Feel free to use free assets instead.

chiangandy commented 3 weeks ago

I make other simple project include soft mask which can produce the issue for white circle mask image over the rect scroll view. Please take a reference. I hope it is useful for you. :)

REGARDS

Andy Chiang 江謝迪

[image: image.png]

mob-sakai @.***> 於 2024年8月17日 週六 下午5:46寫道:

Of course, you don't need to include any secret assets from your project. Feel free to use free assets instead.

— Reply to this email directly, view it on GitHub https://github.com/mob-sakai/SoftMaskForUGUI/issues/183#issuecomment-2294810347, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALGOG46LPWQCCBGR64NURDZR4LVXAVCNFSM6AAAAABMNIIAIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJUHAYTAMZUG4 . You are receiving this because you were mentioned.Message ID: @.***>

mob-sakai commented 3 weeks ago

The issue is not reproduced on my environment... If the same issue arises, please re-open this issue.

Mythique commented 2 weeks ago

image

This issue is still happening for me too. Everything is fine in the editor, but it doesn't work on Android. The scroll view has a Mask, inside there is a container with a vertical layout group. The SoftMask game object has a child with an image loaded at runtime. These images are inside a Sprite Atlas.

image

mob-sakai commented 2 weeks ago

@Mythique I would like to know more informations about this issue. 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

mob-sakai commented 2 weeks ago

@Mythique Temporary solution: https://github.com/mob-sakai/SoftMaskForUGUI/issues/183#issuecomment-2289998665

Mythique commented 2 weeks ago

I invited you to a private repository on GitHub, with a "minimal" reproduction. I confirm that I can see the bug when building for Windows or Android.

The scene to launch is called "Map" and can be found under "Assets/Project Assets/Scenes".

Thank you for taking the time to look into this.

mob-sakai commented 2 weeks ago

Thank you 👍

mob-sakai commented 1 week ago

OK, I found a way to reproduce it in the editor.

image

Workaround: Show Mask Graphic = false

image
mob-sakai commented 1 week ago

This occurs when there is a SoftMask under Mask.

github-actions[bot] commented 1 week ago

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

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] commented 1 week 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: