Skip to content

Commit cc1ee10

Browse files
committed
fix: manual mode is not working
close #258
1 parent 19b5e06 commit cc1ee10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packages/src/Runtime/Utilities/SoftMaskUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ private static Material GetSoftMaskingMaterial(ref Material mat, BlendOp op)
227227
public static void AddSoftMaskableOnChildren(MonoBehaviour self, bool includeSelf)
228228
{
229229
if (!self || !self.isActiveAndEnabled) return;
230-
if (!self.isActiveAndEnabled) return;
230+
if (!UISoftMaskProjectSettings.addSoftMaskableAutomatically) return;
231231

232232
self.AddComponentOnChildren<SoftMaskable>(includeSelf);
233233
}

0 commit comments

Comments
 (0)