summaryrefslogtreecommitdiff
path: root/Runtime/GUI/TextMesh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/GUI/TextMesh.cpp')
-rw-r--r--Runtime/GUI/TextMesh.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Runtime/GUI/TextMesh.cpp b/Runtime/GUI/TextMesh.cpp
index de9a195..2f66170 100644
--- a/Runtime/GUI/TextMesh.cpp
+++ b/Runtime/GUI/TextMesh.cpp
@@ -50,6 +50,8 @@ InitializeStaticVariables([]() {
s_SizePerText = sizeof(TextMeshVBOLayout) * 4;
});
+// 一段文字里面的网格可能会来自不同的atlas,在生成TextMesh时做好合批
+
TextMesh::TextMesh(const UnicodeString& str, Font* font,int pixelSize, ETextAnchor anchor, ETextAlignment alignment)
{
m_Font = font;