Özer Gül

Unity3d DOTween creating sequence

2016 12 15 Unity3D

dotween_logo

DOTween is one of the popular plugins in the Asset Store. It makes easier creating tweens and animations. Besides the Unity’s animation engine, Dotween is simple and useful. You can create tweens both with script or inspector easily.

Here you are sequence example in with DOTween:

Sequence Test_Sequence = DOTween.Sequence();
Test_Sequence.Append(Icon.transform.DOScale (new Vector3 (1.4f, 1.4f, 0), 0.1f));
Test_Sequence.Append(Icon.transform.GetComponent<Image>().DOColor(Color.red, 0.1f));
mySequence.Append(Icon.transform.DOScale (new Vector3 (1f, 1f, 1f), 0.1f));

Test_Sequence.AppendCallback(() => {
	// this is callback
	Debug.Log("Finished");
});
Test_Sequence.Play ();

For more examples click here.

Leave a Reply

Your email address will not be published. Required fields are marked *

(c) Özer Gül, css framework w3.css