Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Bug Text disappearing when text pivot goes off screen (only when bold style is selected)

Discussion in 'UGUI & TextMesh Pro' started by Meatloaf4, Sep 21, 2022.

  1. Meatloaf4

    Meatloaf4

    Joined:
    Jul 30, 2013
    Posts:
    146
    Essentially I have a main font asset setup to use bold, italic & bold italic font assets of the same font as shown below.

    upload_2022-9-21_12-36-18.png

    As expected, I'm able to use the various font styles in my UI by selecting the following options in the TextMeshPro - Text (UI) component (see image below). In this case, everything works perfectly.

    upload_2022-9-21_12-38-21.png

    However, an issue occurs when I try to do the same thing with the TextMeshPro - Text component. At first glance everything works / displays as expected, however the text disappears when the text's pivot point moves off-screen (see gif below).

    upload_2022-9-21_12-40-43.gif

    For additional context, here is the GameObject for the disappearing text. You can see it is using a very similar setup to my TextMeshPro - Text (UI) component above. However, in this case I have issues.

    upload_2022-9-21_12-42-9.png

    It looks like I can get it to work (not disappear when pivot exits) if I specifically set the Font Asset to its bold counterpart font asset (deselecting the bold style at that point), as that seems to change the material to the font asset bold material. However, this seems unintuitive to me. Shouldn't I be able to utilize TextMeshPro - Text the same as utilizing TextMeshPro - Text (UI)?

    Any help would be greatly appreciated! Thanks in advance!
     

    Attached Files: