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 UI & World space with different material preset

Discussion in 'UGUI & TextMesh Pro' started by voodooace, Dec 3, 2019.

  1. voodooace

    voodooace

    Joined:
    Mar 27, 2017
    Posts:
    2
    Hi, I understand the limitation of TMP for text in UI & World space cannot share the same material, which I am fine with 1 font with 2 material preset and separate all the texts.

    My question is: what is the best way to handle localization (multiple fonts, each with 2 materials)?
    Is it possible to dynamically switch to another font & respective material according to its property (UI/Worldspace)
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    This potential issue only occurs when mixing normal TextMeshPro components which use the Mesh Renderer and TextMeshProUGUI components which use the Canvas Renderer when these components share the same material.
     
  3. mrm83

    mrm83

    Joined:
    Nov 29, 2014
    Posts:
    345
    Does this limitation still exist?

    I am using 3.0.6 and I cant reproduce the problem where the text goes missing (or maybe it hasnt happened yet)