iTween.DrawLine C# (CSharp) Method

DrawLine() public static method

When called from an OnDrawGizmos() function it will draw a line through the provided array of Transforms.
public static DrawLine ( Transform line ) : void
line Transform /// A ///
return void
    public static void DrawLine(Transform[] line)
    {
        if(line.Length>0){
            //create and store line points:
            Vector3[] suppliedLine = new Vector3[line.Length];
            for (int i = 0; i < line.Length; i++) {
                suppliedLine[i]=line[i].position;
            }
            DrawLineHelper(suppliedLine,Defaults.color,"gizmos");
        }
    }

Same methods

iTween::DrawLine ( Transform line, Color color ) : void
iTween::DrawLine ( Vector3 line ) : void
iTween::DrawLine ( Vector3 line, Color color ) : void
iTween