Make Unity's window transparent and overlay on desktop.
You can import this asset from UnityPackage.
You have to import following assets to use this asset.
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.
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
Sometimes gets tearing and I can't find the cause. However, it is not serious.
There is a little jaggy even if use anti-aliasing, especially in low-dpi.
Some anti-aliasing shader gets wrong result.
DLAA | Wrong edges appears in the result. |
---|---|
FXAA2 | Some non-transparent pixel gets wrong transparency. |
FXAA3 | All of the transparent pixel (in backgrounds) losts the transparency in the result. |