Search Unity

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

Discussion in 'Unity UI (uGUI) & TextMesh Pro' started by Goat-Boy, Aug 8, 2019.

  1. Goat-Boy


    Jun 15, 2015
    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.