feat: ui transparency when not hovered

This commit is contained in:
Gerard Gascón 2024-04-12 20:18:06 +02:00
parent 88a97164ea
commit 12304c6bb4
366 changed files with 27618 additions and 28 deletions

View file

@ -0,0 +1,18 @@
#if !UNITY_EDITOR
using SatorImaging.AppWindowUtility;
using UnityEngine;
namespace View {
internal static class DisplaySetup {
[RuntimeInitializeOnLoadMethod]
private static void Setup() {
AppWindowUtility.AlwaysOnTop = true;
AppWindowUtility.FrameVisibility = false;
Vector2Int resolution = new(Screen.currentResolution.width, Screen.currentResolution.height);
Vector2Int newPosition = new(resolution.x - Screen.width, 0);
Screen.MoveMainWindowTo(Screen.mainWindowDisplayInfo, newPosition);
}
}
}
#endif