I’m a little confused on the logic of why the 3 waypoints get returned in the for loop.
foreach(Transform child in pathPrefab.transform)
{
waveWaypoints.Add(child);
}
Why does pulling each transform from pathPrefab.transform only return the 3 child transforms, and not the transform on Path(0) itself?
To me it looks like “pathPrefab.transform” would be a reference to the transform itself on Path(0), and not include the children in the hierarchy.
Thanks for the help.