I was using iTween for giving animation to each main menu elements. But animation not get played as per desire thinking, something different is running so I become confused about this for a solution.
I want to play game title, move animation from 1200 units to 0 unit using iTween move animation. But something like this, I was getting a result - it get stopped on -540 units:

This kind of code, I have written for UI Image move animation:
iTween.MoveTo (ballTitleObj, iTween.Hash ("x", 0f, "speed", 100f, "delay", 1f));
I know iTween work with Transform component and UI element with work RectTransform but what I require to do for a solution?
First, get the
RectTransformof the title:Then, call
iTween.ValueTo, because you don't want to change the transform, you need to change theRectTransform.And in the same class that you are calling
iTween.ValueToin, you need to define aMoveBallTitlemethod that updates the anchoredPosition:This answer is based off this answer on the Unity Q&A site