Fix fullscreen mode
This commit is contained in:
@@ -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 =>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user