fix: skip monitoring TMP objects that can ignore Y-axis scaling

This commit is contained in:
mob-sakai
2025-08-20 08:48:07 +09:00
parent b077d97ed7
commit d1adb33884
+3 -1
View File
@@ -143,7 +143,9 @@ namespace Coffee.UIEffects
var toRemove = InternalListPool<TextMeshProUGUI>.Rent();
foreach (var textMeshProUGUI in s_RegisteredInstances)
{
if (textMeshProUGUI && textMeshProUGUI.isActiveAndEnabled)
if (textMeshProUGUI
&& textMeshProUGUI.isActiveAndEnabled
&& !textMeshProUGUI.isTextObjectScaleStatic)
{
var id = textMeshProUGUI.GetHashCode();
var lossyScaleY = textMeshProUGUI.transform.lossyScale.y;