From baf961ab2dbccaf7ba6632a8567465ed4ccbdc7a Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Tue, 18 Dec 2018 09:09:22 +0900 Subject: [PATCH] Update soft mask buffer on parameter changed --- .../Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs b/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs index 60a6726..cf97a14 100644 --- a/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs +++ b/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMask.cs @@ -71,6 +71,7 @@ namespace Coffee.UIExtensions if (m_DesamplingRate != value) { m_DesamplingRate = value; + hasChanged = true; } } } @@ -87,6 +88,7 @@ namespace Coffee.UIExtensions if (m_Softness != value) { m_Softness = value; + hasChanged = true; } } } @@ -103,7 +105,8 @@ namespace Coffee.UIExtensions if (m_IgnoreParent != value) { m_IgnoreParent = value; - OnTransformParentChanged(); + hasChanged = true; + OnTransformParentChanged (); } } }