Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: viqtor on May 11, 2014, 06:36:40 AM

Title: Tween UIWidget Anchor
Post 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.
Title: Re: Tween UIWidget Anchor
Post by: ArenMook on May 11, 2014, 08:27:28 AM
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.