NavMeshAgent.nextPosition
var nextPosition: Vector3;
Vector3 nextPosition;
nextPosition as Vector3
Description

The next position on the path.

A path consists of waypoints that are aimed for in succession by the agent as it navigates. This property contains the position of the waypoint the agent is currently heading for. When this point is reached, the target will be advanced to the next waypoint, and so on until the agent lands at the destination point.