- Home /
iTween.MoveTo doesnt Working!
I'm newbie in Unity and iTween Plugin! So, I want to move a Cube to other position with MoveTo method from iTween, but the code i've built is not working!
Why? Whats Wrong?
iTween.MoveTo(gameObject,Vector3(2,0,0),2);
Answer by DecipherOne · Nov 29, 2012 at 04:56 AM
You aren't supplying the correct arguments. iTween requires you to use a hash table or the Hash() function in order to build your argument list. It's explained on the getting started page of iTween which is located : http://itween.pixelplacement.com/gettingstarted.php look at the HelloWorld project sample.
Thank you bro! But not only with Hash();
Ins$$anonymous$$d of: iTween.$$anonymous$$oveTo(gameObject,Vector3(2,0,0),2); I've tried: iTween.$$anonymous$$oveTo(gameObject,new Vector3(2,0,0),2);
And it worked! With hash code too!
=)
Your answer
![](https://koobas.hobune.stream/wayback/20220613084637im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
how to move or fade GUITextures with iTween 2 Answers
Struggling with iTween moveTo example code 1 Answer
Using iTween to move a gameobject from node to node 1 Answer
orienttopath problem in iTween waypoint ? 0 Answers
check if object is moving 5 Answers