pull/151/merge
Luanrobs 2023-03-23 13:44:35 +00:00 committed by GitHub
commit 8ef4935e81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 19 deletions

View File

@ -1,3 +1,10 @@
## [1.0.3](https://github.com/mob-sakai/SoftMaskForUGUI/compare/1.0.2...1.0.3) (2023-03-23)
### Bug Fixes
* Masked image disapear on resolution change ([65da106](https://github.com/mob-sakai/SoftMaskForUGUI/commit/65da10600ab2b6dad41f675a14457a611c9f8978))
## [1.0.2](https://github.com/mob-sakai/SoftMaskForUGUI/compare/1.0.1...1.0.2) (2022-05-15)

View File

@ -654,25 +654,8 @@ namespace Coffee.UISoftMask
/// </summary>
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;