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 [Bug] Text sometimes become invisible

Discussion in 'UGUI & TextMesh Pro' started by xVergilx, Aug 23, 2018.

  1. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    Text doesn't rebuild properly sometimes, when attaching it to the child canvas with the disabled "Override Sorting Layer" flag.

    How to repro:
    1. Create two canvases, place one inside another one.
    2. Add gameObject with attached TextMesh Pro component.
    3. In script - enable or disable the gameObject with text rapidly.
    4. Text will disappear after some time.

    This can be avoided with toggling "Override Sorting Layer" on the child canvas.
    Not sure why it happens though.

    This is on Unity 2018.1.7f1, TMP v.1.2.4 (Package Manager's version)

    Unfortunately I'm too busy to upload repro project, but it's quite simple to repro.