Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity draw waypoins 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 #waypoins #path
ADD COMMENT
Topic
Name
9+9 =