So i’m using iTween to move an object. My current code is
iTween.MoveTo(gameObject,Vector2(-1.2,0),1.5);
I’ve been having trouble adding an ease type to it. The one I want to use is easeInOutQuart. How would the script look if I was to add this to it.
PuneetK
2
iTween.MoveTo(gameObject, iTween.Hash(“position”, Vector3(-1,2,gameObject.transform.position.z), “time”,1.5, “easetype”, “easeinoutquart”));
This should work. If you are using C#, add the ‘new’ parameter before Vector3.
You can also add almost any iTween parameter using this method
I’ve done some more research and was able to find my solution, i am using
iTween.MoveTo(gameObject,{"x": -1.2, "easetype": "easeinoutQuart","time": 1.5});