Understand Hit Testing (Click-through behavior)
mainWhen a window is transparent, it still exists as a rectangular area. To allow users to click "through" the transparent parts to windows underneath, UniWindowController uses "Hit Testing".
You can choose between two methods:
| Method | Description | Note |
|---|---|---|
Opacity | Checks the alpha/transparency of the pixel. | Most natural look, but higher CPU cost. (Default) |
Raycast | Checks for the presence of a Collider. | More performant, but requires you to set up Colliders on your UI/objects. |
If you use Raycast and forget to provide Colliders, the window will become unclickable.