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
  • Loading branch information
mob-sakai committed Nov 14, 2024
1 parent a4d55b7 commit 380fdc6
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 380fdc6

Please sign in to comment.