Unity-Technologies / Unity-Technologies/uGUI

Vertext Count Error when Text cotent out of range

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

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.
c524fe4fed5ce8aab5e79bedabfae5a

this is text test cotent:
4a0610496643601ea02f53b0c688512

in the range
dfb21eacdc41ff2bcb3f364773881be

out of range after input newline
813271152828278a99b8790623649ed

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.