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

TextMesh Pro Strikethrough thickness?

Discussion in 'UGUI & TextMesh Pro' started by tessellation, Aug 25, 2020.

  1. tessellation

    tessellation

    Joined:
    Aug 11, 2015
    Posts:
    383
    This property seems to be in the Font Asset files but is not exposed in the font asset editor.

    "m_StrikethroughThickness"
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    Underling Thickness currently drives both Underline and Strikethrough thickness.

    Are you trying to set these two differently?
     
  3. tessellation

    tessellation

    Joined:
    Aug 11, 2015
    Posts:
    383
    Well, no, but I found that fallback fonts often have a different strikethrough thickness than the primary font. Yet when I modify the underline thickness of a fallback font, it seems to have no effect. My observation is that the primary font underline thickness governs the thickness for all characters but things like fallback font asset scale and of course strikethrough offset do have an effect on the end-result for these characters.