Roses/Assets/Scripts/View/DisplaySetup.cs
2024-04-15 16:31:27 +02:00

18 lines
No EOL
502 B
C#

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