Author Topic: Anchors and TweenScale  (Read 2278 times)

sb_007

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Anchors and TweenScale
« on: September 06, 2017, 04:06:28 AM »
A self-created, fully anchored Popup Window, containing few labels and buttons, doesn't appear as desired on using TweenScale.

sb_007

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Re: Anchors and TweenScale
« Reply #1 on: September 06, 2017, 04:28:48 AM »
A self-created, fully anchored Popup Window, containing few labels and buttons, doesn't appear as desired on using TweenScale.
The children items get Scaled Up in haphazard manner.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Anchors and TweenScale
« Reply #2 on: September 09, 2017, 04:03:36 AM »
It's not a good idea to scale something that has anchored children, unless they are anchored to the root object that's being scaled. If you anchor to something outside of the scaled object's hierarchy, you are bound to run into issues.

Also make sure you are not scaling down to zero scale, as that's invalid. Can't divide by zero, so can't calculate the inverse transform.