Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started 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.
-
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.
-
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!
-
Because the origin (0, 0, 0) is there. Check your transform hierarchy and remove the offset.
-
Thanks for reply. It's the detail info about the Panel Object. I can't find problems. Could you find any error from it?
-
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.