Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: viqtor on May 11, 2014, 06:36:40 AM
-
Hello,
Is there a way to tween the UIWidget's Anchor? How can one write a simple script to do so? I'm thinking it should have a From Vector4 with the original offsets and a TO Vector4 with the final offsets. NGUI should definitely have this.
-
Each anchor is 2 values, not 1. So you'd be tweening 8 things. It wouldn't be an intuitive tween.
TweenPosition, TweenWidth and TweenHeight are all capable of adjusting the anchors.