Author Topic: Panel and TweenAlpha bug  (Read 2697 times)

rain

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 4
  • Posts: 79
    • View Profile
Panel and TweenAlpha bug
« on: February 13, 2014, 12:12:12 PM »
Hi!

I found a possible bug regarding panels and a TweenAlpha script, here's how to reproduce it:

1.)Create a 2D UI
2.)Create a Panel ("Panel-A")
3.)Create a Panel ("Panel-B") as a child of Panel-A
4.)Create a sprite as a child of Panel-B
5.)Place a TweenAlpha script on Panel-A
   Enabled
   From:1 
   To:0
   OnFinished: TweenAlpha.ResetToBeginning()
6.) Press play
Panel alpha fades to zero, OnFinished sets the alpha to 1 on finish but the panel's content stays invisible.

Newest NGUI with Unity 4.3.0f4, dunno if this happens on other Unity versions as well.
« Last Edit: February 21, 2014, 10:13:37 AM by rain »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Panel and TweenAlpha bug
« Reply #1 on: February 14, 2014, 05:40:11 AM »
Yarrr, this was already fixed in 3.5.0, but thanks.

rain

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 4
  • Posts: 79
    • View Profile
Re: Panel and TweenAlpha bug
« Reply #2 on: February 14, 2014, 05:44:53 AM »
I guess 3.5.0 is only available for Pro dudes now, right?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Panel and TweenAlpha bug [fixed in 3.5.0]
« Reply #3 on: February 14, 2014, 05:46:01 AM »
Until I'm done with it, yup.

rain

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 4
  • Posts: 79
    • View Profile
Re: Panel and TweenAlpha bug [fixed in 3.5.0]
« Reply #4 on: February 21, 2014, 10:13:22 AM »
I just tested this problem in NGUI 3.5.0b and it still happens for me.
« Last Edit: February 21, 2014, 10:19:57 AM by rain »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Panel and TweenAlpha bug
« Reply #5 on: February 21, 2014, 01:34:10 PM »
Must be a different issue then. I'll look into it.