Skip to content

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

  1. Set Agent to your NPC agent.
  2. Set Target to the player transform.
  3. Handle No Path Event to switch to fallback behavior.

See also