Skip to content

Some TMPro tags are not stripped, resulting in exceptions #24

Closed
@edwardrowe

Description

@edwardrowe

We need to strip all native tags when parsing the text, or else it will calculate the wrong number of characters to print and results in an ArgumentException.

Repro:

  1. Add a <style> tag to text
  2. Print it
  3. Observe ArgumentException

To fix, we either need to add all missing "Unity" tags to the parser, or calculate characters to print based on the visible text. For now the easiest fix is to include all missing tags. Ex:

style
link

Another issue that could come up is you can use color like "<#FFFFFF>" instead of <color=#FFFF>. If that results in this same issue, we may want to look at solution that examines the visible text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions