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

Question Is there any way to position the underline of TextMeshProUGUI behind the text?

Discussion in 'UGUI & TextMesh Pro' started by Aleremu, May 29, 2023.

  1. Aleremu

    Aleremu

    Joined:
    Feb 2, 2022
    Posts:
    1
    I'm working on the style of my texts, and I need a thick underline to appear behind the text. However, I'm unable to figure out how to place it behind the text. I attempted to modify the DrawUnderlineMesh function in TMP_Text.cs, but the editor prevented me from doing so. It displayed the following message: "The package cache was invalidated and rebuilt because the following immutable asset(s) were unexpectedly altered."

    Do any of you know a consistent way to achieve this? Is it even possible?

    upload_2023-5-29_12-33-22.png