feat: basic window resizing

This commit is contained in:
Gerard Gascón 2024-04-16 01:07:26 +02:00
parent 438b16fc6e
commit ce692af862
18 changed files with 324 additions and 74 deletions

View file

@ -1,4 +1,4 @@
#if !UNITY_EDITOR

using SatorImaging.AppWindowUtility;
using UnityEngine;
@ -6,13 +6,14 @@ 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.ResizeWindowRelative(resolution.x, resolution.y);
AppWindowUtility.ResizeWindow(resolution.x, resolution.y);
#endif
}
}
}
#endif
}