Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity draw waypoints path

void Update()
{
   if (connectedMarker.Length > 1)
   {
     for (int i = 0, j = 1; j < connectedMarker.Length; ++i, ++j)
     {
       Debug.DrawLine(connectedMarker[i].position, connectedMarker[j].position);
     }
   }
}
 
PREVIOUS NEXT
Tagged: #unity #draw #waypoints #path
ADD COMMENT
Topic
Name
5+4 =