Unity-Technologies / Unity-Technologies/uGUI
Vertext Count Error when Text cotent out of range
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1.6k
- Forks
- 323
- PR merge metrics
- No merged PRs in 30d
Description
with Unity2018.4.36, I found that in the Text method OnPopulateMesh(VertexHelper toFill) , toFill.currentVertCount count RichText color tag text vertex when the content in this Text is out of range.

this is text test cotent:

in the range

out of range after input newline

Then I tested with Unity2017.4.16 and Unity2020.3.16.
Unity2020.3.16 is same as Unity2018.4.36,
but Unity2017.4.16 always count RichText color tag text vertex.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at Text.OnPopulateMesh(VertexHelper toFill) and reproduce the reported vertex-count difference using the attached text content across Unity 2017.4.16, 2018.4.36, and 2020.3.16. Compare the in-range and out-of-range newline cases; the issue does not define a precise expected count or name a source file, so the desired correction needs clarification before implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100