From 466e08bc1d14040a5a6794f545351dec4f7a7582 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Thu, 1 Oct 2020 18:40:54 +0900 Subject: [PATCH] fix: screen resolution in full screen mode is incorrect --- .../UIEffectSnapshot/Scripts/UIEffectSnapshotUpdater.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Packages/UIEffectSnapshot/Scripts/UIEffectSnapshotUpdater.cs b/Packages/UIEffectSnapshot/Scripts/UIEffectSnapshotUpdater.cs index 6d7a815..62b3b9f 100644 --- a/Packages/UIEffectSnapshot/Scripts/UIEffectSnapshotUpdater.cs +++ b/Packages/UIEffectSnapshot/Scripts/UIEffectSnapshotUpdater.cs @@ -158,10 +158,16 @@ public static void GetSamplingSize(UIEffectSnapshotRequest.DownSamplingRate rate } else #endif + if (Screen.fullScreenMode == FullScreenMode.Windowed) { w = Screen.width; h = Screen.height; } + else + { + w = Screen.currentResolution.width; + h = Screen.currentResolution.height; + } if (rate == UIEffectSnapshotRequest.DownSamplingRate.None) return;