Vertext Count Error when Text cotent out of range
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
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.
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.
- Dominant language
- C#
- Stars
- 1.6k
- Forks
- 323
- PR merge metrics
- No merged PRs in 30d
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.
More from Unity-Technologies/uGUI
-
> - [ ] Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
Unity-Technologies/uGUI#22 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Unity-Technologies/uGUI#20 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Unity-Technologies/uGUI#17 ·
-
When clicking on a mobile platform, some gameobject will trigger OnEnter event without OnExit event Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Unity-Technologies/uGUI#16 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Unity-Technologies/uGUI#15 ·
All issues in Unity-Technologies/uGUI
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·