Author Topic: UIPanel + UIGrid + UIImage Button not tweening correctly  (Read 4095 times)

justinISO

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 52
    • View Profile
UIPanel + UIGrid + UIImage Button not tweening correctly
« on: August 26, 2013, 10:07:53 AM »
Hello,

I am using Unity 4.1 and just download NGUI Full version last week. I am trying to set up a table view controller type situation. I have a background sliced sprite which looks fine. Then for the contents I have a UIDraggable Panel with a clipping plane set up. As a child of the panel I have a UIGrid to line my buttons up and down. Then children of the UIGrid are 3 UIImage Buttons.

What I need to happen is when the user clicks a button, the first grid tweens out and a second grid of buttons tween in. However when I tween the first grid, the buttons do not move. After a certain amount of moving the x position of the grid, the button labels slide of screen but the button images don't move.

Any ideas?

Thanks,
Justin

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPanel + UIGrid + UIImage Button not tweening correctly
« Reply #1 on: August 27, 2013, 02:53:52 AM »
Clipped panel assumes that the content size will not change. Tweening them in/out is a bad idea. Instead consider having multiple panels and enable/disable and/or tween their alpha instead.