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

Soft mask doesn't work on TextMeshPro when render mode is set to Raster #174

Closed dsinkerii closed 1 month ago

dsinkerii commented 1 month ago

Describe the bug Soft mask doesn't apply to TextMeshPro text when the render mode is set to Raster.

To Reproduce Steps to reproduce the behavior:

  1. Generate/Get a TMP font asset with render mode set to raster.
  2. Create a mask object for that text.
  3. Create an object TextMeshProUGUI with the font asset.

Expected behavior Text being masked by the mask object.

Actual behavior Text not being rendered at all

Screenshots image ^ Mask image and text without the soft mask being enabled image ^ Soft mask script enabled, with show mask graphic being set to true (when ticked off it is not being rendered at all)

Environment (please complete the following information):

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

dsinkerii commented 1 month ago

after a bit of time i realized i could've used the standard mask script mixed with soft mask, which works perfectly, so sorry for wasted time 😅 great project btw!