百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

AppWindowUtility

> 编程语言
开源

此工具用于 Unity 配置应用程序窗口样式 。 使用此工具,您可以使您的应用程序窗口透明,无帧和更多 .

191 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

此工具用于 Unity 配置应用程序窗口样式 。 使用此工具,您可以使您的应用程序窗口透明,无帧和更多 .

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.   日本語版

Copyright

Copyright © 2022-2023 Sator Imaging, all rights reserved.

License

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

…

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.

Sample

Here is a sample code. See the following sections for more options.

csharp
using UnityEngine;
using SatorImaging.AppWindowUtility;

public class MyTest : MonoBehaviour
{
    void Start()
    {
        AppWindowUtility.Transparent = true;
    }
}

[!IMPORTANT] As of my bad naming, you may need to access API thru redundant name like AppWindowUtility.AppWindowUtility.Transparent or SatorImaging.AppWindowUtility.AppWindowUtility.Transparent...

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.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#game-devunityunity3d

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言