UnityDesktopPetFramework
A transparent window interactive example project based on Unity URP pipeline, suitable for desktop pets, desktop gadgets, etc.
Install / Use
/learn @OnyxAmber/UnityDesktopPetFrameworkREADME
UnityDesktopPetFramework
https://github.com/user-attachments/assets/8096b714-465f-4d7c-b9a4-662d0bb3a9e1
UPDATE: Now with active windows collide physics sample
https://github.com/user-attachments/assets/74aa5786-9882-47b5-ab6b-a5299a2f99a3
A transparent window interactive example project based on Unity URP pipeline, suitable for desktop pets, desktop gadgets, etc.
Compatible with Windows Build
Readme
Version
Unity 2021.3.9f1, using Universal RP 12.1.7
Should be compatible with newer versions, but newer versions of the URP pipeline may require switching RendererFeature
Download
Download this project and open it with Unity Hub
Does not use UnityPackage, see Notes for reasons
Features
-
Post-processing, shaders, Physical system... basically everything Unity can do
-
Transparent background top-level display window
-
Switch window mouse penetration/interactive state
-
Collide with active windows!
-
Hide taskbar icon at runtime
-
Show system tray icon and customizable right-click menu at runtime
Notes
-
For higher versions (14+) of the URP pipeline:
The Blit RendererFeature used in the project may no longer be applicable, consider switching to the built-in Full Screen Pass Renderer Feature of this pipeline
-
The project includes a localized Universal RP Package
Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/UberPost.shaderSince the UberPost.shader in Universal RP has been processed to output actual transparency, it has been localized, reference link
If you want to use it in an existing project, please note this
-
Make sure that the Collider Layer of the active window is not included in the LayerMask for interaction detection, or the window cannot be dragged
Known Limitations
-
Not suitable for HDR
-
Calls User32.dll, currently only suitable for Windows platform builds
-
Performance requirements may be high, after all, this is basically a Unity game running in the background
References
-
System tray logic from rocksdanister/rePaper: Desktop that changes based on weather & time
-
Some logic from kirurobo/UniWindowController: Makes your Unity window transparent and allows you to drop files
-
DLL call logic reference [SOLVED!] Windows: Transparent window with opaque contents (LWA_COLORKEY)? - Unity Engine - Unity Discussions
-
Blit RendererFeature from Cyanilux : https://github.com/Cyanilux/URP_BlitRenderFeature
Related Skills
node-connect
337.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
337.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.2kCommit, push, and open a PR
