mob-sakai/UnmaskForUGUI

Softmask with alpha support?

hlongvu opened this issue · 7 comments

I've been using your library and it's great.
But I notice that the mask's border will be pixelated when using sprite with alpha color. Could it support soft mask like SoftMaskForUGUI?

Hi @hlongvu

I would like to know more information on this issue.
Can you attach a minimal repro project or a screenshot for this issue?

Hi, this is screenshot of my setup. You can see I am using the hightlight_1 image with fading border. I want to make the hole in my panel fading from transparent into dark. But the mask is showing pixelated border.

Imgur

Okay, please attach hightlight_1.

Try using clamp instead of repeat in the image import settings.

This is the project zip file Google Drive Link
My setup is in Test scene.
And the image here Imgur
I tried using clamp in import settings but nothing changes.

Oh, sorry, I was mistaken.
UnmaskForUGUI does not support smooth masks.
You can use SoftMaskForUGUI.
It support invert masking.

Thank you, I will try SoftMaskForUGUI.
This library has nice feature like fit target and raycast filter, hope you will add support for SoftMask.