Demigiant Forum

Unity Assets => DOTween & DOTween Pro => Topic started by: cynicalwanderer on May 29, 2015, 05:52:52 PM

Title: Equivalent for GetValue to match ChangeStartValue?
Post by: cynicalwanderer on May 29, 2015, 05:52:52 PM
Hi again,

Is there a way to do a "GetValue" or similar sort of read on a Tweener, to return its TO (or FROM) object value that it has got stored in its DOTween Pro component in the inspector?  What I'd really like to be able to do is to grab the value from one tween - which can vary based on some logic in my code - and then put it into a different tween using ChangeStartValue or ChangeEndValue, to get some conditional chaining working.

Is there a way to do this now?  If not, would it be possible to add something like that? 

Cheers,
Shannon
Title: Re: Equivalent for GetValue to match ChangeStartValue?
Post by: Daniele on May 30, 2015, 12:38:29 PM
Hello!

Taking the target's value from the tween itself is not really doable, but why can't you just check your property value directly?
Title: Re: Equivalent for GetValue to match ChangeStartValue?
Post by: cynicalwanderer on May 30, 2015, 07:55:23 PM
Okay, thanks for confirming.  I was trying to be lazy about it, but I guess I'll have to keep some references in the code to refer to after all.   :P