diff --git a/Packages/src/Editor/AssetModification/SoftMaskableComponentModifier.cs b/Packages/src/Editor/AssetModification/SoftMaskableComponentModifier.cs index fbb4373..bea1bd2 100644 --- a/Packages/src/Editor/AssetModification/SoftMaskableComponentModifier.cs +++ b/Packages/src/Editor/AssetModification/SoftMaskableComponentModifier.cs @@ -8,8 +8,12 @@ internal class SoftMaskableComponentModifier : ComponentModifier { 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;