A getter for the Tween.Loops
« on: June 05, 2015, 12:06:08 AM »
Hi again,

I can see there's a SetLoops function available, but would it be possible to also have a GetLoops function added, or even just .Loops accessible in the code, to grab the property of Loops from the DOTweenAnimation component?  I need something like this to be able to automate the distinction between one-off tweens and looping tweens when I parse through the TweensByTarget list, so that I'm only pausing/restarting the looping ones when I go back and forth between my menus.

Regards,
Shannon

Re: A getter for the Tween.Loops
« Reply #1 on: June 05, 2015, 03:10:07 PM »
By the way I have now reworked my code to do this a different way to work around this, so it isn't important any more.  But might still be a useful option to have for later.

*

Daniele

  • Dr. Admin, I presume
  • *****
  • 378
    • View Profile
    • Demigiant
Re: A getter for the Tween.Loops
« Reply #2 on: June 07, 2015, 12:25:34 AM »
Hey Shannon,


Sorry for the delay, I was out of town. I added this to my todo list, and will add it as soon as I solve an issue I have with a new feature.


Cheers,
Daniele

*

Daniele

  • Dr. Admin, I presume
  • *****
  • 378
    • View Profile
    • Demigiant
Re: A getter for the Tween.Loops
« Reply #3 on: June 11, 2015, 10:15:21 PM »
Voilą :)  It's called simply Loops(), not GetLoops()

Re: A getter for the Tween.Loops
« Reply #4 on: June 15, 2015, 11:03:32 AM »
Great, thanks for this.