UGeometryScriptLibrary_PolyPathFunctions::GetNearestVertexIndex

Find the index of the vertex closest to a given point. Returns -1 if the PolyPath has no vertices.