diff --git a/Packages/SoftMaskForUGUI/Scripts/SoftMaskable.cs b/Packages/SoftMaskForUGUI/Scripts/SoftMaskable.cs index 2141d5b..9659268 100755 --- a/Packages/SoftMaskForUGUI/Scripts/SoftMaskable.cs +++ b/Packages/SoftMaskForUGUI/Scripts/SoftMaskable.cs @@ -71,6 +71,20 @@ namespace Coffee.UISoftMask set { m_RaycastFilter = value; } } + /// + /// Use stencil to mask. + /// + public bool useStencil + { + get { return m_UseStencil; } + set + { + if (m_UseStencil == value) return; + m_UseStencil = value; + graphic.SetMaterialDirtyEx(); + } + } + /// /// The graphic associated with the soft mask. ///