From 59a4e49a70ccdb96b07a951e08101af6b3a36da5 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Fri, 1 Feb 2019 16:28:11 +0900 Subject: [PATCH] Refactor --- Scripts/SoftMaskable.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Scripts/SoftMaskable.cs b/Scripts/SoftMaskable.cs index 2ba9872..0b6bb29 100644 --- a/Scripts/SoftMaskable.cs +++ b/Scripts/SoftMaskable.cs @@ -33,7 +33,7 @@ namespace Coffee.UIExtensions [HideInInspector] [SerializeField] int m_MaskInteraction = kVisibleInside; [Tooltip("Use stencil for masking.")] - [SerializeField] bool m_UseStencil = true; + [SerializeField] bool m_UseStencil = false; //################################ @@ -325,11 +325,13 @@ namespace Coffee.UIExtensions void ISerializationCallbackReceiver.OnAfterDeserialize() { + #pragma warning disable 0612 if (m_Inverse) { m_Inverse = false; m_MaskInteraction = (2 << 0) + (2 << 2) + (2 << 4) + (2 << 6); } + #pragma warning restore 0612 } } } \ No newline at end of file