Author Topic: UiAnchor +Itween Animation  (Read 4053 times)

Pratik Parikh

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 24
    • View Profile
UiAnchor +Itween Animation
« on: June 14, 2013, 03:58:02 AM »
Hi ,
  I am have a Main game object with a TopRight UIAnchor on it & inside the game object there are two Sub game objects , When i am trying to animate the sub game objects Animation is happening fine but it is not getting set on the right hand side of the screen. If i don't animate the sub game objects then it is getting set properly on the Right Hand side.

I am facing this problem on different devices while it is working fine in Unity under different resoultions.


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UiAnchor +Itween Animation
« Reply #1 on: June 14, 2013, 05:13:52 PM »
You have to have the animation on your child game objects, not on the anchored game object.

Anchor purposely disables its functionality while there is an animation playing.

Pratik Parikh

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 24
    • View Profile
Re: UiAnchor +Itween Animation
« Reply #2 on: June 17, 2013, 07:11:42 AM »
I am already animating the child objects, I hope the below mentioned structure will help to you understand more.

GameObject
|-UiPanel
   |-GameObject(TopRightAnchor) (Realtive Offset x=0.02 & y = 0)
      |-UiPanel
         |-ChildObject 1 (Animated)
         |-ChildObject 2 (Animated)


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UiAnchor +Itween Animation
« Reply #3 on: June 17, 2013, 09:50:28 PM »
Yes but where is the Animation component located? It should not be on the UIAnchor.