Bug: Mesh can not have more than 65000 vertices

1,863 views
Skip to first unread message

Keinart Lobre

unread,
Mar 12, 2018, 12:41:47 PM3/12/18
to 宴ユーザーグループ
Unityの習熟度:「初心者学生」
宴のバージョン: 3.3.5
UnityのバージョンとOS: Unity2017.3.1f1 Windows 10
UnityのConsoleウィンドウのエラーメッセージ:
ArgumentException: Mesh can not have more than 65000 vertices
UnityEngine.UI.VertexHelper.FillMesh (UnityEngine.Mesh mesh) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Utility/VertexHelper.cs:88)
UnityEngine.UI.Graphic.DoMeshGeneration () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Graphic.cs:392)
UnityEngine.UI.Graphic.UpdateGeometry () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Graphic.cs:374)
UnityEngine.UI.Text.UpdateGeometry () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Text.cs:378)
UnityEngine.UI.Graphic.Rebuild (CanvasUpdate update) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Graphic.cs:335)
UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/CanvasUpdateRegistry.cs:150)
UnityEngine.Canvas:SendWillRenderCanvases()


Hello, I found this error while working in my project. It seems to happen when you have too many lines of text in one page (by using Input or InputBr). This happens with any amount of text as long as it is western, it does not happen with japanese characters. Please check the screenshots for more context.

I prepared an unitypackage too, all you need to do is play the game normally and wait for the bug to happen. It won't let me upload here to this post to I uploaded it somewhere else: https://drive.google.com/file/d/1wDEiaE5L0l_HAL5-p4q9tirpY24rqzHX/view?usp=sharing

Thank you for your time.
Regards.
64gB2OG.png
LZzs8sQ.png

マッドネスラボ

unread,
Mar 12, 2018, 1:57:51 PM3/12/18
to 宴ユーザーグループ
I can't reproduce it.


The scene seems to be different.
Message window with the specified name can not be found.
I changed the name of the message window and imported the scenario.
There are no bugs.
Probably adding a special program to the message window something, I guess that a bug caused by it is occurring.
I can not support it.

マッドネスラボ

unread,
Mar 12, 2018, 2:20:28 PM3/12/18
to 宴ユーザーグループ
Text consume 8 vertices with one character, which amounts to about 20 times that of OutLine.
In other words, it consumes about 150 vertices with one character.
Because the vertex needs to be 65000 or less. 65000/1500 = 433.
Within one page, 433 characters is the upper limit.
This problem is because the number of vertices is 10 times or more for OutLine.
You can reduce the number of vertices by reducing the number of CopyCounts of the RichOutline component.
RichOutline makes the text outline look beautiful. It is Rich as it has a high vertex load.



Keinart Lobre

unread,
Mar 12, 2018, 2:40:06 PM3/12/18
to 宴ユーザーグループ
That worked, thank you very much!
Reply all
Reply to author
Forward
0 new messages