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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

TextMesh Pro Text rendered as pink/purple blocks

Discussion in 'UGUI & TextMesh Pro' started by frostyanimations126, Aug 8, 2022.

  1. frostyanimations126

    frostyanimations126

    Joined:
    Mar 21, 2019
    Posts:
    1
    This happens when I build my game and not in the editor.
    I am using Unity 2021.1.0a7.1331
    Every UI element, no matter the Canvas, apears like pink blocks
    Screenshot from build:
    upload_2022-8-7_19-10-29.png
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    This behavior is most likely the result of the shaders not being included in the builds.

    Provided your text objects are referenced in scenes or prefabs, the font assets they reference and their material and shaders should be included by default. However, if none of these are referenced in the scene or prefabs and these font assets are not contained in a resources folder and placed at the location specified in the TMP Settings file, then you would be likely to get the behavior above.
     
  3. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,510
    @Stephan_B if we're trying to replace using Resources with Addressables, what's the recommended way to ensure font assets are included in the build? We use the fonts all through our prefabs but not embedded in the scene at app initlialization.
     
  4. HoangLeDev

    HoangLeDev

    Joined:
    May 24, 2023
    Posts:
    1
    Just check your material => Choose TextMeshPro/Distance Field this solved my problem
     

    Attached Files:

    fikrihasan053 likes this.
  5. levoxtrip

    levoxtrip

    Joined:
    May 4, 2020
    Posts:
    45
    @Stephan_B I have the same problem with the addressables that all the text is pink. What do you suggest how to implement the TMP Shader?
     
  6. Mythses

    Mythses

    Joined:
    Aug 25, 2023
    Posts:
    5
    I don't have that in my selections