1
DOTween & DOTween Pro / Re: I want to put both rotation and position in one statement
« on: July 24, 2015, 02:23:26 AM »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!