NearestObjectWithTagTracker MonoBehaviour
Overview
The NearestObjectWithTagTracker behaviour is a guided projectile tracker that checks its vicinity for objects with the correct layer and tag, then tracks the closest one.
Inspector
![]()
Properties
| Name | Type | Description |
|---|---|---|
| Detection Tag | String | The object tag to home in on. |
| Detection Layers | LayerMask | The layers to check for colliders on. |
| Detection Range | Float | The max distance for targets to home in on. |
| Detection Counter | Float | The time between searching for targets. |