Hi - I am trying to incorporate iTween into my project, the getting started section says:
iTween.MoveTo(gameObject,Vector3(2,0,0),2);
but how do you define what “gameObject” is in your scene?
Hi - I am trying to incorporate iTween into my project, the getting started section says:
iTween.MoveTo(gameObject,Vector3(2,0,0),2);
but how do you define what “gameObject” is in your scene?
Well .gameObject means the game object containing the script.
If you want to tween other objects you can declare public GameObject toTween and then iTween.MoveTo( toTween…