Search Issue Tracker

Fixed in 3.2.0-pre.2

Fixed in 2.2.0-preview.2

Votes

6

Found in [Package]

2019.4.18f1

2019.4.24f1

2020.3

2021.1

2021.2

Issue ID

1331297

Regression

No

RectMask2D Softness property has no effect when used on TextMeshPro Text

Package: TextMeshPro

-

How to reproduce:
1. Open the user's attached "TMP_Soft_Mask.zip" project
2. Open the "SampleScene" Scene
3. Observe the Game view

Expected result: Softness is applied to both TextMeshPro and regular UI Text
Actual result: Softness is not applied to TextMeshPro Text

Reproducible with: 2019.4.18f1, 2019.4.26f1, 2020.3.7f1, 2021.1.6f1, 2021.2.0a16
Not reproducible with: 2018.4.34f1, 2019.4.17f1

Note:
- The issue is not reproducible on regular UI Text
- The issue is also reproducible in Windows Player

  1. Resolution Note (fix version 3.2.0-pre.2):

    Fixed in 3.2.0-pre.2

  2. Resolution Note (fix version 3.2.0-pre.2):

    Fixed in 3.2.0-pre.2 (2021.2.2f1)

  3. Resolution Note (fix version 3.2.0-pre.2):

    Fixed in 3.2.0-pre.2 (2020.3.22f1)

  4. Resolution Note (fix version 3.2.0-pre.2):

    Fixed in 3.2.0-pre.2

  5. Resolution Note (fix version 2.2.0-preview.2):

    Fixed in 2.2.0-preview.2

Comments (4)

  1. Dust999Games

    Oct 18, 2023 19:49

    I'm fixed it with that changes...

    Temp solution fix shader TMP_SDF.shader add soft mask into it

    1) Add two params from soft mask on line 161

    float _UIMaskSoftnessX;
    float _UIMaskSoftnessY;

    Replace line 227 with the next code.

    output.mask = half4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_UIMaskSoftnessX, _UIMaskSoftnessY) + pixelSize.xy));

    Add soft mask in calculations

  2. rutgerkra

    Dec 16, 2021 08:39

    I see there are newer versions, but they are still pre-release. My editor version doesn't show these in the Package Manager even after I enabled pre-release packages, but that is a different issue.

  3. rutgerkra

    Dec 16, 2021 08:20

    Still having this issue while running editor 2021.2.6. The newest TMP version in Package Manager is still 3.0.6 from April 22, 2021, so before the comment of Stephan saying that it would be fixed in the next release. Does this mean that the next release is still pending? Any update on when this is released? Otherwise I'll have to try to find a different solution.

  4. Stephan_B

    May 27, 2021 05:02

    I will be adding support for the above in the next release of the TMP package. This will require an update of the Shaders included in the TMP Essential Resources.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.