From c4202b45d28fa84567a5671baaef8fa3e3df85dc Mon Sep 17 00:00:00 2001 From: mob-sakai <12690315+mob-sakai@users.noreply.github.com> Date: Thu, 25 Sep 2025 19:25:58 +0900 Subject: [PATCH] fix: `TmpProxy` causes loss of modifications from other `IMeshModifiers` close #371 --- Packages/src/Runtime/Utilities/TmpProxy.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Packages/src/Runtime/Utilities/TmpProxy.cs b/Packages/src/Runtime/Utilities/TmpProxy.cs index 8fd95a5..4351c10 100644 --- a/Packages/src/Runtime/Utilities/TmpProxy.cs +++ b/Packages/src/Runtime/Utilities/TmpProxy.cs @@ -131,7 +131,10 @@ namespace Coffee.UIEffects // When the text is changed, add it to the changed list TMPro_EventManager.TEXT_CHANGED_EVENT.Add(obj => { - if (obj is TextMeshProUGUI textMeshProUGUI && textMeshProUGUI.isActiveAndEnabled) + if (obj is TextMeshProUGUI textMeshProUGUI + && textMeshProUGUI.isActiveAndEnabled + // fix: `TmpProxy` causes loss of modifications from other `IMeshModifiers` (#371) + && textMeshProUGUI.TryGetComponent(out var _)) { s_ChangedInstances.Add(textMeshProUGUI); }