Author Topic: UIPanelAlpha / UIButton interaction issue  (Read 2116 times)

Grimicus

  • Guest
UIPanelAlpha / UIButton interaction issue
« on: October 10, 2012, 06:28:25 PM »
I'm trying to use UIPanelAlpha to transition my panels on button click so that the old one fades out and the new one fades in.  When I use UIButtonPlayAnimation to animate the old panel fading out and fading the new one in.  Randomly, buttons on the fading in panel are colored the DisabledColor from the UIButton on them.  I assume this is because of a race between the animation and the OnEnable being called in UIButton since UIPanelAlpha enables and disables the colliders on the child objects it is controlling the alpha for.   I tried turning off the 'EnableThenPlay' setting in the UIButtonPlayAnimation but then I had strange problems where the alpha color would be set to 0 unless the button's OnHover color was triggered (so moving between items meant they would disappear and appear when selected only)  Any ideas how to fix this?  I assume I could switch them all to UIButtonColor instead but that seems like a lame solution.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPanelAlpha / UIButton interaction issue
« Reply #1 on: October 11, 2012, 04:39:18 AM »
Off the top of my head I got nothing. Maybe I'll be of more help when I return from China.