Roses/Assets/Scripts/View/DisplaySetup.cs
2024-04-16 01:07:26 +02:00

19 lines
No EOL
495 B
C#

using SatorImaging.AppWindowUtility;
using UnityEngine;
namespace View {
internal static class DisplaySetup {
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]
private static void Setup() {
#if !UNITY_EDITOR
AppWindowUtility.AlwaysOnTop = true;
AppWindowUtility.FrameVisibility = false;
//Vector2Int resolution = new(360, 640);
Vector2Int resolution = new(360, 540);
AppWindowUtility.ResizeWindow(resolution.x, resolution.y);
#endif
}
}
}