feat: ui transparency when not hovered
This commit is contained in:
parent
88a97164ea
commit
12304c6bb4
366 changed files with 27618 additions and 28 deletions
18
Assets/Scripts/View/DisplaySetup.cs
Normal file
18
Assets/Scripts/View/DisplaySetup.cs
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue