Author Topic: problem about the Tween scale!  (Read 3986 times)

xiaoniaojjj

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 140
    • View Profile
problem about the Tween scale!
« 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.

JRoch

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 140
    • View Profile
Re: problem about the Tween scale!
« Reply #1 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.

xiaoniaojjj

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 140
    • View Profile
Re: problem about the Tween scale!
« Reply #2 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!
« Last Edit: October 15, 2012, 12:11:25 PM by xiaoniaojjj »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: problem about the Tween scale!
« Reply #3 on: October 15, 2012, 12:20:38 PM »
Because the origin (0, 0, 0) is there. Check your transform hierarchy and remove the offset.

xiaoniaojjj

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 140
    • View Profile
Re: problem about the Tween scale!
« Reply #4 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: problem about the Tween scale!
« Reply #5 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.