From 6dd5790e9183a8dc3bbc01f3e72b4a50693c4b43 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Tue, 20 Nov 2018 11:30:07 +0900 Subject: [PATCH] fix compile error --- .../UIExtensions/SoftMaskForUGUI/Scripts/SoftMaskable.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMaskable.cs b/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMaskable.cs index cbbc74d..c016208 100644 --- a/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMaskable.cs +++ b/Assets/Coffee/UIExtensions/SoftMaskForUGUI/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");