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 9dfacbf commit f67d025
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Packages/src/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 f67d025

Please sign in to comment.