From d1c623588c5cfd37aa8f23c57d5e15f397049eda Mon Sep 17 00:00:00 2001 From: mob-sakai <12690315+mob-sakai@users.noreply.github.com> Date: Wed, 24 Jul 2024 17:12:55 +0900 Subject: [PATCH] fix: flashing when SoftnessRange is changed in inspector --- Packages/src/Runtime/SoftMask.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/src/Runtime/SoftMask.cs b/Packages/src/Runtime/SoftMask.cs index e2c650f..ba3d11a 100644 --- a/Packages/src/Runtime/SoftMask.cs +++ b/Packages/src/Runtime/SoftMask.cs @@ -463,6 +463,7 @@ private void SetDirtyAndNotifyIfBufferSizeChanged() { if (!SoftMaskingEnabled() || !_softMaskBuffer) return; + Logging.Log(this, "SetDirtyAndNotifyIfBufferSizeChanged"); var size = RenderTextureRepository.GetScreenSize((int)downSamplingRate); var hash = new Hash128((uint)GetInstanceID(), (uint)size.x, (uint)size.y, 0); if (RenderTextureRepository.Valid(hash, _softMaskBuffer)) return; @@ -485,7 +486,6 @@ private void OnBeforeCanvasRebuild() // SoftMasking mode: If transform or view has changed, set dirty flag. case MaskingMode.SoftMasking: { - SetDirtyAndNotifyIfBufferSizeChanged(); if (transform.HasChanged(ref _prevTransformMatrix, UISoftMaskProjectSettings.sensitivity)) { SetSoftMaskDirty();