Author Topic: Easy way to reset alpha?  (Read 3292 times)

bmon3y

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Easy way to reset alpha?
« on: January 09, 2015, 11:39:03 AM »
After a TweenAlpha fadeout is there an easy way to reset the alpha to 1 without re-Tweening?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Easy way to reset alpha?
« Reply #1 on: January 10, 2015, 12:39:11 PM »
Change the shape of the curve in inspector. Instead of going from A to B, make it go from A to B then at the every end abruptly go back to A.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Easy way to reset alpha?
« Reply #2 on: January 10, 2015, 06:03:43 PM »
Do you mean set the alpha of the widget, or make the Tweener be ready for a new go?

First is just taking the widget.alpha = 1;

Second, call myTweenerReference.ResetToBeginning().