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. Dismiss Notice

Question Visual Element tooltip and richt text support

Discussion in 'UI Toolkit' started by Destruxion, Dec 10, 2022.

  1. Destruxion

    Destruxion

    Joined:
    Jun 5, 2019
    Posts:
    22
    Hey,

    I was just trying to use Textmesh Pro's <indent> tag to style the output of a tooltip. While color and size tags work fine, indent seems to be unrecognized and just shows up as text.

    Is this a tooltip thing or are tags like indent or cspace not supported?

    Unity 2022.2.0
     
  2. antoine-unity

    antoine-unity

    Unity Technologies

    Joined:
    Sep 10, 2015
    Posts:
    733
    Assuming you're talking about tooltips in the context of the Editor, they are currently rendered with a different text engine which only supports a small subset of rich text tags. We are however making some changes in that area and this could mean all Rich Text tags will be supported for tooltips soon.
     
    Destruxion likes this.
  3. Destruxion

    Destruxion

    Joined:
    Jun 5, 2019
    Posts:
    22
    That sounds great. Any chance this will be backported to Unity 2022.2 or do we have to wait for 2023?
     
  4. antoine-unity

    antoine-unity

    Unity Technologies

    Joined:
    Sep 10, 2015
    Posts:
    733
    I can confirm this will work with Unity 2023, but won't be backported.
     
    Destruxion likes this.