Fix fullscreen mode

This commit is contained in:
2025-08-25 21:54:07 -07:00
parent b14ca2518b
commit 47ba151c25
2 changed files with 4 additions and 2 deletions

View File

@@ -49,7 +49,9 @@ public class SettingsMenu : MonoBehaviour
setting1toggle.onValueChanged.AddListener(value => setting1toggle.onValueChanged.AddListener(value =>
{ {
BazookaManager.Instance.SetSettingFullScreen(value); BazookaManager.Instance.SetSettingFullScreen(value);
Screen.fullScreen = value; var width = Display.main.systemWidth;
var height = Display.main.systemHeight;
Screen.SetResolution(width, height, value);
}); });
setting2toggle.onValueChanged.AddListener(value => setting2toggle.onValueChanged.AddListener(value =>
{ {

View File

@@ -94,7 +94,7 @@ PlayerSettings:
bakeCollisionMeshes: 0 bakeCollisionMeshes: 0
forceSingleInstance: 0 forceSingleInstance: 0
useFlipModelSwapchain: 1 useFlipModelSwapchain: 1
resizableWindow: 0 resizableWindow: 1
useMacAppStoreValidation: 0 useMacAppStoreValidation: 0
macAppStoreCategory: public.app-category.games macAppStoreCategory: public.app-category.games
gpuSkinning: 1 gpuSkinning: 1