diff --git a/Scripts/SoftMask.cs b/Scripts/SoftMask.cs index 7a5a9e2..f112362 100644 --- a/Scripts/SoftMask.cs +++ b/Scripts/SoftMask.cs @@ -654,25 +654,8 @@ namespace Coffee.UISoftMask /// private static void GetDownSamplingSize(DownSamplingRate rate, out int w, out int h) { -#if UNITY_EDITOR - if (!Application.isPlaying) - { - var res = UnityEditor.UnityStats.screenRes.Split('x'); - w = Mathf.Max(64, int.Parse(res[0])); - h = Mathf.Max(64, int.Parse(res[1])); - } - else -#endif - if (Screen.fullScreenMode == FullScreenMode.Windowed) - { - w = Screen.width; - h = Screen.height; - } - else - { - w = Screen.currentResolution.width; - h = Screen.currentResolution.height; - } + w = Screen.currentResolution.width; + h = Screen.currentResolution.height; if (rate == DownSamplingRate.None) return;