Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/XJINE/Unity_TransparentWindowManager

Make Unity's window transparent and overlay on desktop.
https://github.com/XJINE/Unity_TransparentWindowManager

assets unity

Last synced: about 2 months ago
JSON representation

Make Unity's window transparent and overlay on desktop.

Awesome Lists containing this project

README

        

# Unity_TransparentWindowManager

Make Unity's window transparent and overlay on desktop.

![](https://github.com/XJINE/Unity_TransparentWindowManager/blob/master/screenshot.png)

## Import to Your Project

You can import this asset from UnityPackage.

- [TransparentWindowManager.unitypackage](https://github.com/XJINE/Unity_TransparentWindowManager/blob/master/TransparentWindowManager.unitypackage)

### Dependencies

You have to import following assets to use this asset.

- [Unity_SingletonMonoBehaviour](https://github.com/XJINE/Unity_SingletonMonoBehaviour)

## How to Use

### Clear Color Settings

To make transparent window, set ``Camera.ClearFlags`` to ``SolidColor``, and the ``Camera.Background`` to (0,0,0,0).
When set ``Camera.Background to (1,1,1,0)``, the result gets wrong.

## Limitation

This is for Windows, not works on Mac or any others.

Transparency is ignored when use window mode in some laptop (especially when it use mobile type GPU).
Need to use full-screen mode in such case.

In another way, use command-line option like a following
and make the popup-window which has more over full-screen resolution.

```
-popupwindow -screen-width xxxx -screen-height xxxx
```

### Tearing

Sometimes gets tearing and I can't find the cause. However, it is not serious.

### Jaggy

There is a little jaggy even if use anti-aliasing, especially in low-dpi.

### Anti-Aliasing

Some anti-aliasing shader gets wrong result.

DLAAWrong edges appears in the result.
FXAA2Some non-transparent pixel gets wrong transparency.
FXAA3All of the transparent pixel (in backgrounds) losts the transparency in the result.