Skip to content

Commit

Permalink
fix: SoftMaskable is not editable
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Nov 14, 2024
1 parent 135b123 commit f9937a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ private static void ResetAllSoftMasks()
private void OnValidate()
{
ResetAllSoftMasks();
ResetAllHideFlags<SoftMaskable>(hideFlagsForTemp);
ResetAllHideFlags<MaskingShapeContainer>(hideFlagsForTemp);
ResetAllHideFlags<TerminalMaskingShape>(hideFlagsForTemp);
}
Expand Down
2 changes: 1 addition & 1 deletion Packages/src/Runtime/SoftMask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ private void AddSoftMaskableOnChildren()
{
if (!isActiveAndEnabled || !SoftMaskingEnabled()) return;

this.AddComponentOnChildren<SoftMaskable>(UISoftMaskProjectSettings.hideFlagsForTemp, true);
this.AddComponentOnChildren<SoftMaskable>(true);
}

private void OnBeforeCanvasRebuild()
Expand Down

0 comments on commit f9937a9

Please sign in to comment.