Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

TextMesh Pro TextMeshPro components being moved to the back of the UI

Discussion in 'UGUI & TextMesh Pro' started by Dudledok, Aug 16, 2018.

  1. Dudledok

    Dudledok

    Joined:
    Oct 24, 2013
    Posts:
    110


    Having an issue with a project that's using LWRP and TMPro.

    Any TMPro elements will be rendered before anything else after the first time the game is run, and will persist into the editor. For clarification, the text will correctly be displayed based on its hierarchy position until I run the game once where it will be rendered before anything else (i.e. it can't be seen because it's behind every other element on that canvas) despite the hierarchy not changing. If I then create new TMPro components they will be rendered behind the UI as well. Using the Frame Debugger I can see they're being rendered first when they weren't before.

    Has anyone experienced this or know what might be causing it?

    I can set the TextMeshProUGUI GameObject to be the child of a canvas with Override Sorting enabled and Sort Order to be anything greater than zero, but then I'd need to go through my entire hierarchy and add canvases all over the place, ensure pop-ups have higher sorting, etc.

    Edit: Added video
     
    Last edited: Aug 28, 2018