All Projects → sator-imaging → AppWindowUtility

sator-imaging / AppWindowUtility

Licence: MIT license
This utility is for Unity to configure application window style. With this utility, you can make your application window transparent, frameless and more.

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to AppWindowUtility

Volumetric-Occlusion-Mask-SRP
Using SRP to create a volumetric occlusion mask for objects to use in their render pass
Stars: ✭ 17 (-34.62%)
Mutual labels:  srp
aws-sdk-net-extensions-cognito
An extension library to assist in the Amazon Cognito User Pools authentication process
Stars: ✭ 80 (+207.69%)
Mutual labels:  srp
srptools
Tools to implement Secure Remote Password (SRP) authentication
Stars: ✭ 22 (-15.38%)
Mutual labels:  srp
VoxToVFX
Import a MagicaVoxel project to Unity using the new VFX Graph
Stars: ✭ 61 (+134.62%)
Mutual labels:  hdrp
HdrpAovTest
Custom post processing effect with the AOV output feature of HDRP
Stars: ✭ 25 (-3.85%)
Mutual labels:  hdrp
SRP
Secure Remote Password (SRP) for Swift
Stars: ✭ 44 (+69.23%)
Mutual labels:  srp
pundit kit
Extension for pundit which allows to describe namespaces of policies in routes-like style
Stars: ✭ 12 (-53.85%)
Mutual labels:  srp
URP-Sun-Shafts
A URP port of Unity's classic Standard Assets Effects package's Sun Shaft effect
Stars: ✭ 36 (+38.46%)
Mutual labels:  srp
cognito-srp
Go library for AWS Cognito SRP
Stars: ✭ 40 (+53.85%)
Mutual labels:  srp
BentNormalTest
Test project for the "specular occlusion from bent normal" feature in Unity HDRP
Stars: ✭ 40 (+53.85%)
Mutual labels:  hdrp
RamblerAppDelegateProxy
divide et impera
Stars: ✭ 83 (+219.23%)
Mutual labels:  srp
Attrs
Python Classes Without Boilerplate
Stars: ✭ 3,786 (+14461.54%)
Mutual labels:  srp
mbedtls-esp8266
Updated and Upgraded mbedTLS library for the ESP8266 (probably ESP32 too)
Stars: ✭ 13 (-50%)
Mutual labels:  srp
scst
No description or website provided.
Stars: ✭ 61 (+134.62%)
Mutual labels:  srp
VertexAnimation
Vertex animation baking tool, shaders and animation system for Unity DOTS/ECS.
Stars: ✭ 132 (+407.69%)
Mutual labels:  hdrp
HdrpBlitter
Blit-only custom render classes for HDRP
Stars: ✭ 36 (+38.46%)
Mutual labels:  hdrp
VFX-Essentials
VFX graph workshop in HDRP with samples
Stars: ✭ 122 (+369.23%)
Mutual labels:  hdrp

App Window Utility

This utility is for Unity to configure application window style. With this utility, you can make your application window transparent, frameless and more.

License

See LICENSE.md for detailed licensing information.

Features

Features are tested with Unity 2020.3 LTS and HDRP 10.3.2 on Windows 10 64-bit.

Prerequisites

using SatorImaging.AppWindowUtility; is required to make the following examples work.

Transparent Window

bool AppWindowUtility.Transparent { get; set; }

This will make application window transparent. In other words, you can see behind through application window.

Transparency is based on Unity's rendering result. So that you need to set camera background to Solid Color with alpha is set to zero.

NOTE: If you use High-Definition Render Pipeline (HDRP) or something based on Scriptable Render Pipeline (SRP), Color Frame Buffer setting needs to be set to RGB 16bit (or 8bit if available). Unity's default is RGB 10bit that Operating System doesn't support.

Window Opacity

AppWindowUtility.SetWindowOpacity(byte opacity)

This will set overall window opacity. It works with see-thru window.

WindowGrabber Component

With Transparent enabled, window has no title bar so that you need a way to move window.

WindowGrabber adds an ability to move window by dragging any area of application window. To add this feature, create empty GameObject and attach WindowGrabber component.

You can still use uGUI controls if WindowGrabber is used.

Full Screen Mode

bool AppWindowUtility.FullScreen { get; set; }

This will make window full screen or not.

NOTE: Use this instead of Unity's built-in UnityEngine.Screen.SetResolution(width, height, isFullScreen) and UnityEngine.Screen.fullScreen to work better with App Window Utility.

Always on Top

bool AppWindowUtility.AlwaysOnTop { get; set; }

This will make application window stay on top of other windows while another application has focus.

Click-Thru Mode

bool AppWindowUtility.ClickThrough { get; set; }

This make application window non-clickable.

NOTE: You must implement a way to disable this feature not using mouse click. If not implemented, you cannot touch your application anymore.

Window Frame Visibility

bool AppWindowUtility.FrameVisibility { get; set; }

This will set window frame visibile or invisible.

NOTE: When enable transparent window, window frame will be automatically hidden.

Color-Keying Window

AppWindowUtility.SetKeyingColor(byte red, byte green, byte blue)

This will Keying specified color from application window. It's strongly recommended to use AppWindowUtility.Transparent instead of this.

Additive Composition Mode

On Windows, applying AppWindowUtility.SetKeyingColor(0, 0, 0) and then AppWindowUtility.Transparent = true will change window composition mode to "Additive".

NOTE: This behaviour could be a bug of Windows.

Important Notes

Player Settings

Use DXGI Flip Model Swapchain for D3D11 must be turned off to work correctly.

If App Window Utility doesn't work as you expected, see Player Settings below for reference.

Using with High-Definition Render Pipeline (HDRP)

Color Buffer Format must be RGB 16bit (or something supported on Host OS) to work correctly. Other renderer based on Scriptable Render Pipeline (SRP) needs setting like this too.

Transparent and Frame Visibility

If you apply Transparent = true and then FrameVisibility = true, it will remove background filling from application window. Result is below, as you can see, background is filled with window frame color.

Copyright

Copyright © 2022 Sator Imaging, all rights reserved.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].