Search Unity

TextMeshPro 3D and Sprites

Discussion in 'UGUI & TextMesh Pro' started by TheHeftyCoder, Apr 21, 2020.

  1. TheHeftyCoder

    TheHeftyCoder

    Joined:
    Oct 29, 2016
    Posts:
    91
    Hello, I'm experiencing some problems with depth testing when using TextMeshPro and a sprite. The text is put in front of the sprite and the sorting layer and order is the same. Depending on the rotation of the parent object or the view angle, the text is sometimes rendered behind the sprite, despite being in front it. Currently using Universal Render Pipeline, so maybe there's a slight problem there?

    As a side question, is there a way - through script - to change from TextMeshPro to TextMeshProUGUI (and vice versa) and keep the settings that exist in both? Or do I have to make some sort of extension method?

    Thanks in advance!

    EDIT: I see now that this is the same problem as trying to essentially use Sprites and Meshes together. Well, this has proven to be quite the problem...
     
    Last edited: Apr 22, 2020