Skip to content

orangeboy0/Unity-Transparent-Window-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Unity-Transparent-Window-System

Unity Transparent Window System (Unity 6+) An easy-to-use solution for creating transparent and click-through Unity windows for 2D and 3D projects (URP & BRP) using chroma key rendering. Works on Windows 10/11, a simple 2-click setup.

Unity transparent window click-through overlay demo URP

Features:

  • 2 button click setup
    • a button for the project settings
    • a button for camera settings
  • Lightweight
  • Simple to use
  • Api that you can call to
    • change chrom key color
    • Always on top on/off
    • taskbar visibility & tab switch menu on/off
  • clickthrough window

How it works:

  • pick a chroma key color (I recommend pure black: #000000)[all colors should work]
  • Your camera uses a solid color background that gets removed
  • For outlines or darker elements, you can safely use slightly lighter blacks like #111111

Limitations:

  • you cant use post proccsing fully
    • mostly bloom it cuz problems for me
    • and any post processing that change the visual color for chroma key that you selected
  • only works on windows(it uses windows api)
  • it only run in build(so it wont break)

How To use

  • put the Transparent Window prefab in your Scene
    • click on Apply Window Setup to change a bunch of settings so transparency can work
    • set the settings as you like of chroma key color and other settings

Unity transparent window prefab setup



  • for your cam
    • add TransparentWindowCameraSetup and click setup or
    • disable post processing, set camera to solid color, chang camera background color to chroma key color note: you can use post processing put to limits that it not effect the chroma key color

Unity transparent window prefab setup



Settings that will be alter when clicking on Apply window setup

  • Edit -> Project Settings -> Player -> Reslution and presntion
    • use DXGI Flip Model unchek it
    • Full screen mode set to FullScreen Window
    • enable Forece single instance(optional if you want your app to must be only a one instance)
  • Edit -> Project Settings -> Player -> Other settings
    • disable autographics api for windows
    • make D11 higer in the list

Installation

Use Cases

  • Dekstop games
  • Dekstop pets
  • Unity Game overlays
  • Custom Unity desktop apps

About

Unity Transparent Window System (Unity 6+) An easy-to-use solution for creating transparent and click-through Unity windows using chroma key rendering. Works on Windows 10/11, a simple 2-click setup.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors