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

Text Mesh Pro font material presets not visible in Text component?

Discussion in 'UGUI & TextMesh Pro' started by PandaArcade, Jan 2, 2020.

  1. PandaArcade

    PandaArcade

    Joined:
    Jan 2, 2017
    Posts:
    128
    Sorry if I'm missing something simple :)

    @Stephan_B what is magical the link between TMP fonts and their materials? What is the hidden location/naming convention I need to adhere to to make them show up in the text component dropdown list?

    Why is it set up this way? o_O
     
    Last edited: Jan 2, 2020
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    In order to prevent having to load all material to figure out which one is using the same atlas texture as the primary font asset, TMP narrows down this search by looking for a material with the same prefix as the primary font asset. Ie. if the font asset is "Arial SDF" then anything that includes the prefix "Arial SDF - Outline" will be found.
     
    xenofusion and AliaxeyKa like this.
  3. PandaArcade

    PandaArcade

    Joined:
    Jan 2, 2017
    Posts:
    128
    Thanks Stephan =D