Waypoint - The Waypoint object at the index position inside the waypoint list.
Example
usingGley.TrafficSystem;usingGley.TrafficSystem.Internal;usingSystem.Collections.Generic;usingUnityEngine;publicclassTest:MonoBehaviour{ //a reference to vehicle pool and player assigned in inspectorpublicVehiclePool vehiclePool;publicTransform player;voidStart() {API.Initialize(player,20, vehiclePool); }publicvoidCreatePath() { //get the path from start to endVector3 startPosition =newVector3(0,0,0);Vector3 endPosition =newVector3(0,0,350);List<int> path =API.GetPath(startPosition, endPosition,VehicleTypes.Car);foreach (int pathIndex in path) {Waypoint waypoint =API.GetWaypointFromIndex(pathIndex);Debug.Log(waypoint.name+" "+waypoint.position); } }}