iTween.DrawPath C# (CSharp) Method

DrawPath() public static method

When called from an OnDrawGizmos() function it will draw a curved path through the provided array of Transforms.
public static DrawPath ( Transform path ) : void
path Transform /// A ///
return void
    public static void DrawPath(Transform[] path)
    {
        if(path.Length>0){
            //create and store path points:
            Vector3[] suppliedPath = new Vector3[path.Length];
            for (int i = 0; i < path.Length; i++) {
                suppliedPath[i]=path[i].position;
            }

            DrawPathHelper(suppliedPath,Defaults.color,"gizmos");
        }
    }

Same methods

iTween::DrawPath ( Transform path, Color color ) : void
iTween::DrawPath ( Vector3 path ) : void
iTween::DrawPath ( Vector3 path, Color color ) : void
iTween