Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - toyobunko

Pages: [1]
1
DOTween & DOTween Pro / Set float value and callback???
« on: April 25, 2015, 12:44:24 PM »
Hi,

Being relatively new to the Unity scene, I am struggling with the following task:

1) I need to adjust a certain float value ("abb") over time with easing (presumably using DOTween)
2) When the tween is completed, I need to set up a new tween with slightly different (random) parameters by calling ResetTweenParameters().

I should say that the documentation gives no clear example on how to do this basic task. Nor I have any real knowledge on callbacks usage. I tried to do the following:

Code: [Select]
DOTween.To(()=> abb, x=> abb = x, Random.Range(0.5f,1.5f), Random.Range(0.2f,2f)).OnComplete(ResetTweenParameters());
but it doesn't work saying OnComplete isn't possible in this case. I'm clueless, please help.

Pages: [1]