diff --git a/Packages/src/Runtime/ProjectSettings/UISoftMaskProjectSettings.cs b/Packages/src/Runtime/ProjectSettings/UISoftMaskProjectSettings.cs index e65c83c..853f721 100644 --- a/Packages/src/Runtime/ProjectSettings/UISoftMaskProjectSettings.cs +++ b/Packages/src/Runtime/ProjectSettings/UISoftMaskProjectSettings.cs @@ -152,7 +152,6 @@ private static void ResetAllSoftMasks() private void OnValidate() { ResetAllSoftMasks(); - ResetAllHideFlags(hideFlagsForTemp); ResetAllHideFlags(hideFlagsForTemp); ResetAllHideFlags(hideFlagsForTemp); } diff --git a/Packages/src/Runtime/SoftMask.cs b/Packages/src/Runtime/SoftMask.cs index d5379f8..657676c 100644 --- a/Packages/src/Runtime/SoftMask.cs +++ b/Packages/src/Runtime/SoftMask.cs @@ -533,7 +533,7 @@ private void AddSoftMaskableOnChildren() { if (!isActiveAndEnabled || !SoftMaskingEnabled()) return; - this.AddComponentOnChildren(UISoftMaskProjectSettings.hideFlagsForTemp, true); + this.AddComponentOnChildren(true); } private void OnBeforeCanvasRebuild()