iTween.PutOnPath C# (CSharp) Method

PutOnPath() public static method

Puts a GameObject on a path at the provided percentage
public static PutOnPath ( GameObject target, Transform path, float percent ) : void
target GameObject /// A ///
path Transform /// A ///
percent float /// A ///
return void
    public static void PutOnPath(GameObject target, Transform[] path, float percent)
    {
        //create and store path points:
        Vector3[] suppliedPath = new Vector3[path.Length];
        for (int i = 0; i < path.Length; i++) {
            suppliedPath[i]=path[i].position;
        }
        target.transform.position=Interp(PathControlPointGenerator(suppliedPath),percent);
    }

Same methods

iTween::PutOnPath ( GameObject target, Vector3 path, float percent ) : void
iTween::PutOnPath ( Transform target, Transform path, float percent ) : void
iTween::PutOnPath ( Transform target, Vector3 path, float percent ) : void
iTween