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
1.97k stars 261 forks source link

TextMeshPro Material keeps resetting itself to non-masked version #75

Closed MartinHaeusler closed 4 years ago

MartinHaeusler commented 4 years ago

Hi, I'm using your Soft Mask asset and I'm trying to apply it to a scroll view. Inside, there's some panels and some text rendered with TextMeshPro.

Your editor addon kindly suggests to change the material of the font assets to be the "Distance Field (Soft Maskable)" version. Klicking on "fix" also works.

However, when I try to apply this on a prefab, and then instantiate the prefab, the material of the TextMeshPro assets will always reset itself to the TMP shader, instead of the soft mask shader.

Is there anything I can do about this?

Environment (please complete the following information):

MartinHaeusler commented 4 years ago

I just noticed something: when I use the "Fix" button to change the material, the changes get reverted. When I choose the material manually, it works!

mob-sakai commented 4 years ago

@MartinHaeusler Thank you for reporting!

github-actions[bot] commented 4 years ago

:tada: This issue has been resolved in version 1.0.0-preview.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: