Skip to content

Commit

Permalink
fix: The SoftMask component was blocking raycasts to the `MaskingSh…
Browse files Browse the repository at this point in the history
…ape (Subtract)` area.

close #220
  • Loading branch information
mob-sakai committed Dec 25, 2024
1 parent 94e820d commit 828c869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packages/src/Runtime/SoftMask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 828c869

Please sign in to comment.