fix: queue TextMeshPro parent for submesh rebuild

close #416
This commit is contained in:
mob-sakai
2026-11-26 10:29:32 +09:00
parent ff9055471a
commit 240ac6b206
@@ -54,6 +54,13 @@ namespace Coffee.UIEffects
public override void SetVerticesDirty(Graphic graphic, bool enabled) public override void SetVerticesDirty(Graphic graphic, bool enabled)
{ {
// TMP submeshes are updated only when the parent is rebuilt, so queue the parent even if the replica is disabled. (#416)
if (graphic is TMP_SubMeshUI subMeshUI)
{
graphic = subMeshUI.textComponent as TextMeshProUGUI;
enabled = true;
}
if (graphic is TextMeshProUGUI textMeshProUGUI && textMeshProUGUI.isActiveAndEnabled) if (graphic is TextMeshProUGUI textMeshProUGUI && textMeshProUGUI.isActiveAndEnabled)
{ {
if (enabled) if (enabled)