Skip to content

Commit

Permalink
fix: placing a SoftMaskable object outside of a SoftMask makes the ob…
Browse files Browse the repository at this point in the history
…ject invisible

close #180
  • Loading branch information
mob-sakai committed Aug 10, 2024
1 parent 710d2cf commit 096aa69
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Runtime/SoftMaskable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ private void OnTransformChildrenChanged()
this.AddComponentOnChildren<SoftMaskable>(UISoftMaskProjectSettings.hideFlagsForTemp, false);
}

private void OnTransformParentChanged()
{
_shouldRecalculateStencil = true;
}

void IMaskable.RecalculateMasking()
{
_shouldRecalculateStencil = true;
Expand Down

0 comments on commit 096aa69

Please sign in to comment.