Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Unity UI How to Partially change a texts mask/color by script?

Discussion in 'Unity UI (uGUI) & TextMesh Pro' started by bartu1997, Aug 13, 2019 at 11:50 AM.

  1. bartu1997

    bartu1997

    Joined:
    Jul 13, 2019
    Posts:
    1
    I need to make an Input field which controls/compares the inputed text with a given text and underlines the *characters which do not match*. Just like in Office word it underlines the typos.
    I can underline the whole text but i need to find a way to underline only one character.(It doesn't have to be an underline. Might be a mask or even just changing the color of one character would do).
    Also i know the way to change the mask or underline some places in text on the inspector but i can't find a way to do it in script.