Search Unity

TextMeshPro UI mask issue

Discussion in 'Unity UI (uGUI) & TextMesh Pro' started by MaartenB, Oct 10, 2018.

  1. MaartenB

    MaartenB

    Joined:
    Nov 6, 2014
    Posts:
    11
    Hello everyone,

    There is a problem with the TextMeshProUGUI component and the Unity Mask component. It seems that the text is still visible on a 3D object when using Deferred rendering. When I'm using Forward rendering, it's totally fine.

    Hereby the steps to replicate the issue:

    1. Create a new project for Unity 2017.4.12f1
    2. Add the TextMeshPro Asset Pack from the Unity asset store.
    3. Add an image to the hierarchy and add the Mask component to that same object. (See first screenshot)
    4. Set the Canvas Render Mode to "World Space". (I haven't tested it with Screen Space)
    5. Right mouse button on "Image" and create a "UI -> TextMeshPro - Text" object.
    6. Set it all up correctly so the mask works and stuff.
    7. Open the "Project Settings -> Graphics" window.
    8. Set the Rendering path in the High (Tier 3) to Deferred.
    9. Cry just a little.
    Hereby two screenshots of the situation:

    upload_2018-10-10_14-16-27.png

    upload_2018-10-10_14-16-45.png

    So I hope you guys can come up with a solution so I can create beautiful projects with some nice TextMesh Pro stuff in it.

    Thanks a lot in advance!


    Best regards,

    Maarten
     
  2. MaartenB

    MaartenB

    Joined:
    Nov 6, 2014
    Posts:
    11
  3. MaartenB

    MaartenB

    Joined:
    Nov 6, 2014
    Posts:
    11
  4. PyramidLab

    PyramidLab

    Joined:
    Jul 26, 2016
    Posts:
    1
    You could use Rect Mask 2D instead of regular Mask component. You can find that solution in example scenes 18 and 20 from TextMeshPro package. This one worked for me