View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0.0
- Last updated
- First released
- Unity version
- 2022.3.62 or later
- Package size
- 36 KB
- Files
- 13
- Favorites
- 19
- Views in the past week
- 9
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
UI Raycast Zone
We often need an invisible area that can still respond to clicks. So UI Raycast Zone is here.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAbout this asset
✨ 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
From the publisher's Asset Store listing.
Technical details
MaskableGraphic itself has raycast detection capability RaycastTarget.
Override OnPopulateMesh to clear vertex data, so no image is rendered.
Keep RaycastTarget enabled to receive click events normally.
✅ Optimized with zero logic overhead on real devices.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2022.3.62f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.