Author Topic: bug: anchor don't refresh as UI is being animated  (Read 2048 times)

laurentl

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 188
    • View Profile
    • McDROID
bug: anchor don't refresh as UI is being animated
« on: April 13, 2013, 04:09:06 AM »
with the following hierarchy:
root(animation)
{
panel (stretches horizontally)
anchor (left of panel)
}

when calling the animation with ActiveAnimation.Play the panel moves up/down but anchor only refreshes at the end of animation.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: bug: anchor don't refresh as UI is being animated
« Reply #1 on: April 13, 2013, 07:03:03 AM »
That's intended. I purposely made UIAnchor disabled when there is an animation present.

The problem is that you are trying to animate something that's anchored. This is wrong. You should animate an object underneath the anchor instead like so:

Anchor
- Animation
--- Everything else

laurentl

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 188
    • View Profile
    • McDROID
Re: bug: anchor don't refresh as UI is being animated
« Reply #2 on: April 13, 2013, 12:26:22 PM »
How do I get around this problem where the red buttons snap into place with a delay ?
https://www.youtube.com/watch?v=Rgfr4zqfFFc

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: bug: anchor don't refresh as UI is being animated
« Reply #3 on: April 14, 2013, 02:09:11 AM »
How can I answer this question without knowing your setup? Only you can answer that. Look at how you set up your UI.