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); }