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

Text Mesh Pro UGUI Text Displays Abnormally Under SoftMask 2.0.0 #173

Closed buger404 closed 1 month ago

buger404 commented 1 month ago

Describe the bug I am using SoftMask version 2.0.0. As shown in Figure 1, it details the settings of the Text and its normal appearance. When I add SoftMask to its parent object, as shown in Figure 2, it becomes blurry and turns black.

To Reproduce Steps to reproduce the behavior:

  1. Add an Image and set its color to argb(1,255,255,255)
  2. Add a TMP Text inside the Image
  3. Add SoftMask to the Image

Screenshots

Environment (please complete the following information):

buger404 commented 1 month ago

Here is a blank project to reproduce this issue. I hope it helps: SoftMaskTest.zip

buger404 commented 1 month ago

Oh, I am very sorry. I upgraded from v1 to v2 without carefully reading the instructions regarding TextMeshPro support. I imported the corresponding sample and resolved the issue.

mob-sakai commented 1 month ago

@buger404 What's up?

buger404 commented 1 month ago

@buger404 What's up?

Oh oh oh, I'm really sorry... I thought there was a new issue, but I just realized I forgot to include those shaders in the built-in shaders. Sorry for bothering you, I'll make sure to double-check next time before bringing up an issue.

thanhtdln commented 2 weeks ago

how exactly did you fix this btw?

buger404 commented 2 weeks ago

how exactly did you fix this btw?

you can have a try to import the sample, you can find that in the package manager.

thanhtdln commented 2 weeks ago

you can have a try to import the sample, you can find that in the package manager.

Well actually i'm having the same problem with the latest version of SoftMask without even clicking on the "Upgrade" button in the settings in my own project. Do i just reimport the package or what else should i do?

thanhtdln commented 2 weeks ago

Ok somehow it's just because i was just dumb. I didnt even read the documents before trying to use the package so i did not import TextMeshPro support in the sample section. Sorry for that :D