From ce2ad5625577921a256065a4afef88ef79644e0b Mon Sep 17 00:00:00 2001 From: Yuntien <37355031+Yuntien@users.noreply.github.com> Date: Thu, 26 Jun 2025 19:18:12 +0800 Subject: [PATCH] Update GameManager.cs --- Assets/Scripts/Game Loop/GameManager.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/Game Loop/GameManager.cs b/Assets/Scripts/Game Loop/GameManager.cs index 22437964f..add48109c 100644 --- a/Assets/Scripts/Game Loop/GameManager.cs +++ b/Assets/Scripts/Game Loop/GameManager.cs @@ -177,14 +177,13 @@ namespace AibisDream switch (windowMode) { case "FullScreen": - Screen.fullScreenMode = FullScreenMode.FullScreenWindow; + Screen.SetResolution(Screen.currentResolution.width, Screen.currentResolution.height, FullScreenMode.FullScreenWindow); break; case "Windowed": - Screen.fullScreenMode = FullScreenMode.Windowed; Screen.SetResolution(1920, 1080, FullScreenMode.Windowed); break; case "MaximizedWindow": - Screen.fullScreenMode = FullScreenMode.MaximizedWindow; + Screen.SetResolution(Screen.currentResolution.width, Screen.currentResolution.height, FullScreenMode.MaximizedWindow); break; default: Debug.Log($"{windowMode} err");