Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Any official method to put text background color to TextMesh Pro ?

Discussion in 'UGUI & TextMesh Pro' started by rickygai, May 11, 2023.

  1. rickygai

    rickygai

    Joined:
    Mar 9, 2022
    Posts:
    103
    Unity 2021.3.23f1
    Unity Hub 3.4.2
    TextMeshPro v3.0.6


    Hi,

    I want to highlight a text string using TextMesh Pro but not using the "<mark>" tag as it is overwriting the front of the text character.

    I found some previous thread in this forum that is by changing the font using <font>, it works but affecting the text color if change to black #000000 and display with shadow on it like the green background picture below.

    https://drive.google.com/file/d/1OGMhtwuV-R3EW5HhHscEYlysi9vSOJrJ/view?usp=sharing


    Please advise.
     
    Last edited: May 12, 2023