WaypointsHolder script description

Object with this script hold waypoints as path and visualize it.
If list of waypoints is empty - Script will try to gather all child objects (with waypoint script attached) as waypoints on start. In this case path will be created automatically according to waypoints order in Hierarchy

Average structure looks like:



Parameters description:

  • Color - Debug path lines color

  • Waypoints - List of all waypoints assigned to this path

  • ColorizeWaypoints - Repaint all waypoints in the color