The alpha from TMP (UGUI) is not working with soft mask (original) (raw)

If you mask an image (or another TMP) with a mask in TMP, the mask is working correctly. However, it works like a classic unity mask, not like a soft mask, and does not take the alpha into account.

To Reproduce
Steps to reproduce the behavior:

  1. Create a UI -> Canvas
  2. In this canvas, create a UI -> Text - TextMeshPro (let's call it "TMP-Mask" here)
  3. Add the Soft Mask component to your TMP-Mask
  4. Create (in children of TMP-Mask) an Image (or another TMP)
    (For some reason I don't understand, if Ignore Children is false in "Soft Maskable" in TMP-Mask, nothing works, but this is not necessary if TMP-Mask was not a TMP but an image)
  5. From here, if you adjust the alpha from the color in the TMP component of TMP-Mask, the children element will not be affected at all.

Expected behavior
The Alpha from a TMP with a Soft Mask must affect the Soft Maskable.
If the TMP-Mask color has an alpha of 25, its children Soft Maskable elements (image, TMP, etc.) must be masked and have their alpha reduced to 25%.

Screenshots

Image

Environment:

Additional context
The behaviour changes a bit depending on the font.
For a TMP-mask and a TMP-maskable, if the TMP-maskable has a default Liberation font, and if the TMP-mask reaches alpha 0, the TMP-maskable disappears as intended (but still not working for alpha values of 1 to 99), but with my Poppins font for TMP-maskable, the alpha mask never works.