NavGridAgent Pathfinding
These actions drive a NavGridAgent using A* pathfinding.
Use this page for workflow context. For action parameters and behavior details, use the action reference pages below.
Which Action To Use
| Goal | Action | Why |
|---|---|---|
| Keep following a moving Transform target | NavGridAgent Set Target | Assigns/updates the agent target; movement continues based on agent settings. |
| Issue a one-off move to a Transform and continue FSM after arrival | NavGridAgent Move To Target | Combines destination assignment with arrival callback flow. |
| Issue a one-off move to a world position and continue FSM after arrival | NavGridAgent Move To Position | Best for click-to-move, waypoints, and scripted positions. |
Action Reference
Typical Usage
- Configure NavGridAgent movement/path settings.
- Choose a pathfinding action based on whether your destination is a transform or a world position.
- Handle arrival in your FSM using events or follow-up states.