Author Topic: UIlabels not visible after an alpha tween  (Read 2187 times)

bloomk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 38
    • View Profile
UIlabels not visible after an alpha tween
« on: February 01, 2016, 06:07:33 PM »
I have a UIWidget with an alpha tween on it. The widget has a uisprite inside it, and inside that is several uiLabels. When i activate the alpha tween from 1 to 0, and then later back from 0 to 1, the labels are not always visible until the text of the label changes. Any idea why? Also, how do i fix it? can i trigger a manual forced update?

bloomk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 38
    • View Profile
Re: UIlabels not visible after an alpha tween
« Reply #1 on: February 02, 2016, 05:10:33 PM »
Any idea? thanks

bloomk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 38
    • View Profile
Re: UIlabels not visible after an alpha tween
« Reply #2 on: February 03, 2016, 02:12:22 PM »
Please help, i have a production app that is having an issue and i need to get it fixed... thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIlabels not visible after an alpha tween
« Reply #3 on: February 04, 2016, 09:18:43 PM »
There is no reason for something like that. When you change an alpha of a widget, all the widget's children change as well. Alpha is cumulative. The only reason it wouldn't work would be modifying NGUI's source somewhere, using some old outdated version of NGUI, or changing sprites' transform parents without notifying the widgets to inform them that you've done so.

bloomk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 38
    • View Profile
Re: UIlabels not visible after an alpha tween
« Reply #4 on: February 11, 2016, 07:28:08 PM »
I think it was caused by using a clipping texture of a panel. I changed the way it worked and it fixed it.. so thanks :)