Search Unity

TextMesh Pro How to not make <link> tag invisible automatically in TextMesh Pro Inputfield

Discussion in 'UGUI & TextMesh Pro' started by sushanta1991, Aug 15, 2019.

  1. sushanta1991

    sushanta1991

    Joined:
    Apr 3, 2011
    Posts:
    305
    I have created a text editor for my game to write stories inside it, basically, it generates a JSON file at the end which we can use in our game to create an interactive story.

    In 2017.4 it was working fine, after upgrading to 2018.4 as soon as I write <link> in Inputfield it gets invisible.

    My question is how can I make the link tag visible in Inputfield?

    screenshot
    https://drive.google.com/file/d/1N8800aIECykMdG8gAaxoYFxhMuuWvzbA/view?usp=sharing
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    What version of TextMesh Pro are you using with Unity 2018.4?
     
  3. sushanta1991

    sushanta1991

    Joined:
    Apr 3, 2011
    Posts:
    305
    I am using TextMesh Pro Version 1.4.1
     
  4. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    The word <link> is a Rich Text Tag so if you have Rich Text enabled on the Input Field, it will consume the tag. Ie. Make it become invisible like any other tags.

    upload_2019-8-15_0-36-36.png
     
  5. sushanta1991

    sushanta1991

    Joined:
    Apr 3, 2011
    Posts:
    305

    Haha Thank you so much, I should have thought about this, but I then thought that maybe something has gone wrong while upgrading.
     
  6. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Glad we figured out the issue :)
     
    sushanta1991 likes this.