Hi,
I have made a custom script that tweens the relative offset in an anchor. I want to animate widgets from the left of my screen to a relative position, say 75%. The reason why I am doing it this way, is because I want the animation to be independent of screen size. The tween-position doesnt work if the width of the screen changes to much.
My script works fine, and everything seems to be ok. My hierarchy looks like this:
UIRoot
- UIAnchor (this object also has a UIAnchorTween-script and a Panel script attached.)
-Widgets
Is this the right way to do this? Or is there a better way?