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");