UI Raycast Zone
We often need an invisible area that can still respond to clicks. So UI Raycast Zone is here.
by kkmaple
Price History +
✨ Why use UIRaycastZone?
We often need an invisible area that can still respond to clicks.Typical use cases include:
- Virtual joysticks
- Full-screen click masks
- “Non-transparent clickable areas” in tutorial overlays
✨ Why use UIPolygonRaycastZone?
Sometimes the clickable area we need is not a rectangle, but an arbitrary polygon shape. Typical use cases include:
- Irregular buttons (hexagons, circles, stars, etc.)
- Polygonal regions on a game map
- Tutorial overlays with “cut-out” or non-rectangular clickable zones
Many developers are used to using the Image component with transparency to handle this, but this approach still:
✖ Generates draw calls
✖ Increases fillrate overhead
✖ Causes GPU load