Demigiant Forum

Unity Assets => DOTween & DOTween Pro => Topic started by: cynicalwanderer on June 05, 2015, 12:06:08 AM

Title: A getter for the Tween.Loops
Post by: cynicalwanderer 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
Title: Re: A getter for the Tween.Loops
Post by: cynicalwanderer 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.
Title: Re: A getter for the Tween.Loops
Post by: Daniele 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
Title: Re: A getter for the Tween.Loops
Post by: Daniele on June 11, 2015, 10:15:21 PM
Voilą :)  It's called simply Loops(), not GetLoops()
Title: Re: A getter for the Tween.Loops
Post by: cynicalwanderer on June 15, 2015, 11:03:32 AM
Great, thanks for this.