View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0
- Last updated
- First released
- Unity version
- 6000.0.31 or later
- Package size
- 92 KB
- Files
- 9
- Favorites
- 6
- Views in the past week
- 4
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
Raycast Controller
The Raycast Controller system is designed to detect and handle collider interactions using Unity's raycasting capabilities.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 2
Raycast Controller screenshot 1
About this asset
- Flexible raycasting configuration for distance, layers, and runtime control.
- Event-based callbacks (`OnEnter`, `OnStay`, `OnExit`) for interaction logic.
- Debugging tools to visualize raycasts and hit points in the Scene view.
From the publisher's Asset Store listing.
Technical details
- **Customizable Raycasting:**
- Configurable `distance` and `layerMask` for fine-tuned detection.
- Option to enable or disable raycasting dynamically with `castOnUpdate`.
- **Event Handling:**
- `OnEnter`: Triggered when a new collider is detected.
- `OnStay`: Triggered when the ray continues to hit the same collider.
- `OnExit`: Triggered when the ray stops hitting a collider.
- **Debugging Tools:**
- Visualize the raycast path, hit points, and hit sphere in the Scene view.
- Customizable debug colors for the ray, hit, and sphere.
**Inspector Configuration:**
- **Configuration:** Set the raycast `distance`, `layerMask`, and whether to cast on every `Update`.
- **Debug Options:** Adjust the ray and sphere colors or enable hit sphere visualization.
- **Events:** Hook up UnityEvents to trigger custom behavior during interactions.
Compatibility
| Unity version | Built-in | URP | HDRP |
|---|---|---|---|
| 6000.0.31f1 | Compatible | Not listed | Not listed |
As listed on the Asset Store.