From 56bfeb44fb33fe2434b707a517b225c6593d1917 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Tue, 20 Nov 2018 11:30:07 +0900 Subject: [PATCH] fix compile error --- Scripts/SoftMaskable.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Scripts/SoftMaskable.cs b/Scripts/SoftMaskable.cs index cbbc74d..c016208 100644 --- a/Scripts/SoftMaskable.cs +++ b/Scripts/SoftMaskable.cs @@ -193,8 +193,9 @@ namespace Coffee.UIExtensions { s_ActiveSoftMaskables = new List(); + #if UNITY_EDITOR UnityEditor.EditorApplication.update += UpdateSceneViewMatrixForShader; -// Canvas.willRenderCanvases += UpdateSceneViewMatrixForShader; + #endif s_SoftMaskTexId = Shader.PropertyToID("_SoftMaskTex"); s_StencilCompId = Shader.PropertyToID("_StencilComp");