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 Setting hidden child img active changes tmpro alignment

Discussion in 'UGUI & TextMesh Pro' started by MrLucid72, Sep 24, 2020.

  1. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    962
    EDIT (IMPORTANT): This seems to ONLY occur when Unicode is set in the tmp txt. When English text is filled, no alignment changes at all. I had no idea this bug even existed until I was testing Chinese.

    Now, this is a weird one. I have a hover button where when I hover the mouse over, it'll flip the text and image. There are no scripts attached to the texts or images, themselves. These 2 lines is essentially all that's really triggered:



    Notice that the vertAlign (horiz align also does this, it seems) changes from Middle.... randomly to Capline only after setting a nested img active. This makes Chinese look really bad since Capline severely misaligns unicode.


    ^ Should be middle left, but resets to top right

    EDIT: This is the strange workaround:
     
    Last edited: Sep 24, 2020