Author Topic: Reset tween on enable?  (Read 4032 times)

SirGive

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Reset tween on enable?
« on: July 14, 2013, 10:34:13 PM »
So I had a scale tween on an object that works the first time it is enabled. Subsequent times that said object is enabled, the tween no longer works. I have also resorted to re-enabling the tween through code, but still no luck in restarting the tween. Here is a very basic example:



Did I miss something super simple?
« Last Edit: July 14, 2013, 10:39:38 PM by SirGive »

SirGive

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Reset tween on enable?
« Reply #1 on: July 14, 2013, 11:10:00 PM »
Ahh I guess I should have poked around in the methods first.

So apparently the tween needs to be .Reset()

Are there any GUI ways to do this?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Reset tween on enable?
« Reply #2 on: July 15, 2013, 06:54:31 AM »
You generally should trigger tweens through code using their Begin() method. There is no "reset" functionality for the tweens in inspector.