feat: basic window resizing
This commit is contained in:
parent
438b16fc6e
commit
ce692af862
18 changed files with 324 additions and 74 deletions
|
@ -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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue