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();