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 - blucky87

Pages: [1]
1


To play more than one action at once you would need to use a sequence: http://dotween.demigiant.com/documentation.php#creatingSequence

-----------------------------------------------------------------
sequence mySequence = DOTween.Sequence();

mySequence.insert(0,currentScreenTransform.DOLocalMove(screenShowPosition,1));
mySequence.insert(0,currentScreenTransform.DORotate(screenShowRotation,1));

mySequence.Play();
-------------------------------------------------------------------

the 0 in insert is the position in the sequence you would like to place things ex:
-------------------------------------------------------------------------------------------------------
sequence mySequence = DOTween.Sequence();

mySequence.insert(0,currentScreenTransform.DOLocalMove(screenShowPosition,1));
mySequence.insert(0,currentScreenTransform.DORotate(screenShowRotation,1));
mySequence.insert(1,currentScreenTransform.DOPath(somepath,0.5f);

mySequence.Play();
--------------------------------------------------------------------------------------------------

would do the first 2 tweens, then when they complete it would play the 3rd.


hope this helps!

Pages: [1]