Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit 9e2c1bf

Browse files
committed
start fix
1 parent 5d82671 commit 9e2c1bf

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed
8.27 KB
Binary file not shown.

Assets/Examples/Prefabs/Text.prefab.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 Bytes
Binary file not shown.

Assets/Examples/Scene/Text.unity

12.7 KB
Binary file not shown.

Assets/TextInlineSprite/Scripts/InlineManager.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ void Initialize()
143143
EmojiTools.EndSample();
144144

145145
RebuildTagList();
146+
147+
ForceRebuild();
146148
}
147149

148150
void LateUpdate()
@@ -348,6 +350,17 @@ public void UnRegister(InlineText _key)
348350
EmojiTools.EndSample();
349351
}
350352

353+
public void ForceRebuild()
354+
{
355+
EmojiTools.BeginSample("Emoji_ForceRebuild");
356+
InlineText[] alltexts = GetComponentsInChildren<InlineText>();
357+
for (int i = 0; i < alltexts.Length; i++)
358+
{
359+
alltexts[i].SetVerticesDirty();
360+
}
361+
EmojiTools.EndSample();
362+
}
363+
351364
/// <summary>
352365
/// 清除所有的精灵
353366
/// </summary>

0 commit comments

Comments
 (0)