Author Topic: UIPanel not showing after animation  (Read 2119 times)

filippopotamus

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 31
    • View Profile
UIPanel not showing after animation
« on: November 01, 2012, 12:38:27 PM »
So I read that you should animate the panels instead of the widgets when you are bringing an entire panel onto the screen. And I noticed that my original hierarchies were like this:

UIAnchor > UIPanel > Animation > Widgets

so I combined the Animation component with the to the UIPanel component and did this instead:

UIAnchor > UIPanel & Animation > Widgets

but now when I animate the panel, the panel doesn't show up. When I look at the panel in the inspector, it is exactly where it should be and the panel and all of its widgets are there and enabled even! But nothings shows. In fact, if I toggle the panel to disabled and then toggle back to enabled, everything shows.  I do not set the animation to disable after done. And I dont see the panel coming in at all. It just doesn't show up.

Any ideas? 

JRoch

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 140
    • View Profile
Re: UIPanel not showing after animation
« Reply #1 on: November 01, 2012, 12:51:46 PM »
What type of animation are you doing?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPanel not showing after animation
« Reply #2 on: November 01, 2012, 01:02:45 PM »
How are you bringing it onto the screen? Don't scale from scale of 0, that's invalid.

filippopotamus

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 31
    • View Profile
Re: UIPanel not showing after animation
« Reply #3 on: November 01, 2012, 01:43:19 PM »
Aaaaaannnnnd the scale of 0 was the problem. You sir... I love you.