NavGridAgent Set Target
Assigns a target Transform to a NavGridAgent.
When the target moves, the agent can repath based on its configured repath settings.
| Parameter | Description |
|---|---|
| Agent | NavGridAgent to control. |
| Target | Target transform to pathfind toward. |
| No Path Event | Optional event sent if no path is available after assigning target. |
Example
- Set Agent to your NPC agent.
- Set Target to the player transform.
- Handle No Path Event to switch to fallback behavior.