Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: xiaoniaojjj on October 15, 2012, 10:11:25 AM

Title: problem about the Tween scale!
Post by: xiaoniaojjj on October 15, 2012, 10:11:25 AM
Pls see the movie, I want use the Tween scale, But i don't know why the position be changed.
Title: Re: problem about the Tween scale!
Post by: JRoch on October 15, 2012, 11:36:54 AM
A)  The video is kind of too small to really get details.
B)  We have no idea what your intended behavior is supposed to be for that panel.
Title: Re: problem about the Tween scale!
Post by: xiaoniaojjj on October 15, 2012, 12:05:02 PM
I add Tween Scale for a gameobject of UIPanel, There is only UIPanel & TweenScale for it,then i set value of From and to (0-----1), the scale run ok. but the position of the Panel also be Change from right&bottom of Screen to the Right postion. I can sure the Anchor of the Panel is center of the GameObject.
The scale Y is ok. only scale x look like from right to left!
Title: Re: problem about the Tween scale!
Post by: ArenMook on October 15, 2012, 12:20:38 PM
Because the origin (0, 0, 0) is there. Check your transform hierarchy and remove the offset.
Title: Re: problem about the Tween scale!
Post by: xiaoniaojjj on October 15, 2012, 10:43:24 PM
Thanks for reply. It's the detail info about the Panel Object. I can't find problems. Could you find any error from it?
Title: Re: problem about the Tween scale!
Post by: ArenMook on October 16, 2012, 08:31:34 AM
All I can suggest is look closer at the hierarchy of objects you have, and which object you're actually scaling. My guess is you're not scaling the panel, but rather its parent.