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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Nested tags of same kind don't act as expected

Discussion in 'UGUI & TextMesh Pro' started by Oskiii, Aug 22, 2020.

  1. Oskiii


    Feb 23, 2016
    Let's say I have a text field with the following input:
    <uppercase><uppercase>Hello</uppercase> world</uppercase>

    I would expect the whole thing to be uppercase, that's how nested tags work in HTML. However, the following result is produced:

    I encountered this problem while trying to form dynamic string with rich text tags. If a parent string has the uppercase tag, I would have to smartly remove the tag from the children where necessary for the system to work.
  2. Stephan_B


    Unity Technologies

    Feb 26, 2017
    Good catch.

    I have made the appropriate change to make sure this will behave as expected in the next release of the TMP package.
    Oskiii likes this.