- Home /
iTween how to define what object will be tweened
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?
Answer by AzulValium · Jun 08, 2012 at 07:37 PM
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....
Your answer
Follow this Question
Related Questions
How do you write scripts attached to a game object that move the main camera 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Efficiency of Game Loops 2 Answers
Using script's method from all of the gameobjects that has that script 2 Answers
How to create 3D game object in specified pixel size? 2 Answers