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)