Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Shifty Geezer on January 02, 2014, 03:36:19 PM
-
I have a widget container with a few sprites on the left of the screen, placed using relative positioning so it fixes to the left side of the screen regardless of screen aspect. I now want to animate it into/out of view on the press of a button. This works with a position Tween on the container for 16:9, but crops the animation off left side when using 4:3, although the container does snap into place when the animation is complete.
How does one get the animator to use the relative values for positioning?
-
Create an invisible widget and anchor the widget, not your sprite. Make your sprite a child of the widget, and animate its local position using TweenPosition.