From 380fdc6c4378fe284457451e77139552a83ff438 Mon Sep 17 00:00:00 2001 From: mob-sakai <12690315+mob-sakai@users.noreply.github.com> Date: Fri, 15 Nov 2024 05:14:46 +0900 Subject: [PATCH] fix: softmask elements stop drawing on resolution change sometimes in editor --- Packages/src/Runtime/SoftMask.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Packages/src/Runtime/SoftMask.cs b/Packages/src/Runtime/SoftMask.cs index 657676c..892e174 100644 --- a/Packages/src/Runtime/SoftMask.cs +++ b/Packages/src/Runtime/SoftMask.cs @@ -661,6 +661,13 @@ private void OnCanvasViewChanged() { EditorApplication.QueuePlayerLoopUpdate(); } + + EditorApplication.delayCall += () => + { + if (!this || !isActiveAndEnabled) return; + _hasResolutionChanged = true; + SetDirtyAndNotify(); + }; #endif }