From f9937a9d610b559e9dbc227e9a29b30fe0c7f483 Mon Sep 17 00:00:00 2001 From: mob-sakai <12690315+mob-sakai@users.noreply.github.com> Date: Thu, 14 Nov 2024 17:11:40 +0900 Subject: [PATCH] fix: SoftMaskable is not editable --- .../src/Runtime/ProjectSettings/UISoftMaskProjectSettings.cs | 1 - Packages/src/Runtime/SoftMask.cs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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()