unity3d - Unity UI Text with markup tags - "String too long for TextMeshGenerator" -
i have text ui component in have 20 lines of 100 character long columns. works fine. if try enclose each character inside <color> </color>
tags give them different colors, following error messages:
string long textmeshgenerator. cutting off characters.
argumentexception: mesh can not have more 65000 vertices
i don't understand why tags count towards character limit, or why increase number of vertices.
what best way solve this? using unity version 5.4.1f1.
i believe unity uses 4 vertices/2 triangles per character, , rich text effects , outline/shadow effects duplicate geometry when applied (i using outline , on text.text
, can too-many-vertices message much, smaller strings 20x100 chars).
my use case scrolling activity log, different case. solutions people have suggested issues:
- use "paging" system instead of by-line-scrolling, limited amount of text displayed @ given time remains accessible
- use 3rd-party solution textmesh pro
- add multiple
text
elementsscroll view
content window, no text can overwhelmed vertices, , usecontent size fitter
keep scrolling functionality
haven't attempted these yet, maybe work you.
Comments
Post a Comment