Search Unity

TextMesh Pro Can't have masking and lighting at the same time?

Discussion in 'UGUI & TextMesh Pro' started by James-Sullivan, Aug 8, 2019.

  1. James-Sullivan

    James-Sullivan

    Joined:
    Jun 15, 2015
    Posts:
    128
    What shader do I use if I want my TextMeshProUGUI text to be maskable by the Mask component and affected by lighting?

    I'm currently using the TextMeshPro/Distance Field (Surface) shader which works well with lighting, but the text isn't being masked.

    Annotation 2019-08-08 132405.png


    I also get this error repeated a few dozen times when I expand certain parts of the Material menu for this shader.
    How can my text be both maskable and affected by lighting? Thanks in advance.