iTween Code (C#)

Path1 defines the all selected coordinates (x,y,z) and path for one object. This means I have to define more than one path for my every different object. In the example, the object’s path is named Path1.

Also the name Tester is the name of the code file. The name Tester should be different for every different paths (Tester1, Tester2, or any other…)

using UnityEngine;
using System.Collections;

public class Tester : MonoBehaviour
{
void Start () {
iTween.MoveTo(gameObject, iTween.Hash(“path”, iTweenPath.GetPath(“Path1”), “time”, 5));
}
}

Leave a Reply