From 828c8690900bb80103c846196dcbd1ae525739ce Mon Sep 17 00:00:00 2001 From: mob-sakai <12690315+mob-sakai@users.noreply.github.com> Date: Thu, 26 Dec 2024 07:29:47 +0900 Subject: [PATCH] fix: The `SoftMask` component was blocking raycasts to the `MaskingShape (Subtract)` area. close #220 --- Packages/src/Runtime/SoftMask.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/src/Runtime/SoftMask.cs b/Packages/src/Runtime/SoftMask.cs index df74e94..449dd8c 100644 --- a/Packages/src/Runtime/SoftMask.cs +++ b/Packages/src/Runtime/SoftMask.cs @@ -628,7 +628,7 @@ public override bool IsRaycastLocationValid(Vector2 sp, Camera eventCamera) if (_shapeContainer) { Profiler.BeginSample("(SM4UI)[SoftMask] IsRaycastLocationValid > Shapes"); - valid |= _shapeContainer.IsInside(sp, eventCamera, false, 0.5f); + valid = _shapeContainer.IsInside(sp, eventCamera, valid, 0.5f); Profiler.EndSample(); }