Native Window Control
Window activation and focus control Fit-to-monitor with per-monitor targeting Multi-monitor enumeration and monitor change events ... Original window state restored on detach/quit
by Fallen Asleep
Price History +
Cross-platform window control for Windows, macOS, Linux: transparency, click-through, mouse/keyboard capture, borderless, minimize/maximize
Advanced window control for standalone!
Demos
Take full control of the application window on Windows, macOS and Linux. Create borderless transparent windows, implement click-through overlays, capture global mouse and keyboard input, and manage window states programmatically. Essential for desktop tools, overlays, kiosk modes, and background applications.
Features:
- Borderless, transparent, and fullscreen window modes
- Always-on-top and always-on-bottom window ordering
- Window opacity/alpha control (0–100%)
- Click-through (mouse-transparent) windows with automatic or user-defined hit testing
- Free window positioning, including above the macOS menu bar or over the Windows taskbar
- Show window on all virtual desktops / Spaces
- Maximize, hide, and show the window, with minimized/maximized/fullscreen state queries
- Window position and size control with min/max constraints and a resizable toggle
- Window title get/set
- Window activation and focus control
- Fit-to-monitor with per-monitor targeting
- Multi-monitor enumeration and monitor change events
- DPI/Retina backing-scale query for physical-pixel math
- Attention requests - Dock icon bounce (macOS), taskbar flash (Windows), urgency hint (Linux)
- Global input polling - cursor position and warping, mouse buttons, modifier keys, and per-key state via a cross-platform `NativeKey` enum; passive hardware snapshots, no Accessibility/Input Monitoring permissions required
- Graceful exit and force-exit methods
- Window state change callbacks (style, size, z-order) on the Unity main thread - no manual thread marshaling
- Original window state restored on detach/quit
- Automatic Linux launch wrapper - generates `launch.sh` + `get_visual_id` on build so per-pixel transparency works out of the box
Compatibility:
- Unity 2022.3+
- Windows, macOS, and Linux standalone builds
- Linux: X11 or XWayland session (a compositor is required for transparency; the generated `launch.sh` handles the rest)
- Testable in the Editor on Windows and macOS (Linux requires a build)
- Demo scene with runtime console commands