Skip to content

Commit

Permalink
fix: softmask elements stop drawing on resolution change sometimes in…
Browse files Browse the repository at this point in the history
… editor

close #208
  • Loading branch information
mob-sakai committed Nov 16, 2024
1 parent 1cea99d commit 4c2a8d8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Runtime/SoftMask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,13 @@ private void OnCanvasViewChanged()
{
EditorApplication.QueuePlayerLoopUpdate();
}

EditorApplication.delayCall += () =>
{
if (!this || !isActiveAndEnabled) return;
_hasResolutionChanged = true;
SetDirtyAndNotify();
};
#endif
}

Expand Down

0 comments on commit 4c2a8d8

Please sign in to comment.