Skip to content

Commit

Permalink
fix: all SoftMaskable components will be removed on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Nov 17, 2024
1 parent 7cf7336 commit c0593d4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ internal class SoftMaskableComponentModifier : ComponentModifier<SoftMaskable>
{
protected override bool ModifyComponent(SoftMaskable c, bool dryRun)
{
// Skip if the component is hidden.
if ((c.hideFlags & HideFlags.DontSave) != 0) return false;

// Skip if the component is ignored.
if (c.ignoreSelf || c.ignoreChildren) return false;

if (!dryRun)
{
var go = c.gameObject;
Expand Down

0 comments on commit c0593d4

Please sign in to comment.