From d0467e9cea2e86f6531608f1d87ce667fcfeb302 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Sat, 16 Mar 2019 16:49:47 +0900 Subject: [PATCH] fix #44; The masked images all disappear if game view is maximized --- .../UIExtensions/SoftMaskForUGUI/Scripts/SoftMaskable.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMaskable.cs b/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMaskable.cs index 05bfc8a..7c5d1b7 100644 --- a/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMaskable.cs +++ b/Assets/Coffee/UIExtensions/SoftMaskForUGUI/Scripts/SoftMaskable.cs @@ -186,15 +186,6 @@ namespace Coffee.UIExtensions /// static void UpdateSceneViewMatrixForShader() { - UnityEditor.SceneView sceneView = UnityEditor.SceneView.lastActiveSceneView; - if (!sceneView || !sceneView.camera) - { - return; - } - - Camera cam = sceneView.camera; - Matrix4x4 w2c = cam.worldToCameraMatrix; - Matrix4x4 prj = cam.projectionMatrix; s_ActiveSoftMaskables.RemoveAll(x=>!x); foreach (var sm in s_ActiveSoftMaskables)