Just like the title says, I would like to try to change the duration of a tween after it starts.
I'm trying to accomplish a zoom out mechanic at one speed, and using the same tween have it zoom back to the original position at a slower rate.
if (boost > 0.0f)
{
isForwardBoosting = true;
forwardBoostTween.SetEase(forwardBoostEase)
.PlayForward();
}
else if (transform.position.z > initialPositionZ)
{
forwardBoostTween.SetEase(forwardBoostEase)
.PlayBackwards();
}
else
{
isForwardBoosting = false;
}
I've already tried using ChangeValues, with a hard coded incredibly long new duration for testing, but nothing seems to happen. I assume this is because the duration cannot be changed after it is started?
Any advice on a way to accomplish this would be great, thanks!