1
DOTween & DOTween Pro / I want to put both rotation and position in one statement
« on: July 20, 2015, 08:52:47 AM »
multiple properties in one declaration
At the moment I m doing this
-------------------------------------------------------------------------------
//if (Input.GetKey (KeyCode.LeftArrow)
currentScreenTransform.DOLocalMove(screenShowPosition,1);
currentScreenTransform.DORotate(screenShowRotation,1);
-------------------------------------------------------------------------------
Is it possible to do it in one line of code/declaration
Also: I would like to do a from and to in one declaration rather then first setting the start position and then the DOLocalMove
It seems I can only do either a From or a To
-----------------------------------------
currentScreenTransform.DOLocalMove(screenStartPosition,0); //0 seconds - jump to start position
currentScreenTransform.DOLocalMove(screenShowPosition,1);
currentScreenTransform.DORotate(screenStartRotation,0);
currentScreenTransform.DORotate(screenShowRotation,1);
---------------------------------------
At the moment I m doing this
-------------------------------------------------------------------------------
//if (Input.GetKey (KeyCode.LeftArrow)
currentScreenTransform.DOLocalMove(screenShowPosition,1);
currentScreenTransform.DORotate(screenShowRotation,1);
-------------------------------------------------------------------------------
Is it possible to do it in one line of code/declaration
Also: I would like to do a from and to in one declaration rather then first setting the start position and then the DOLocalMove
It seems I can only do either a From or a To
-----------------------------------------
currentScreenTransform.DOLocalMove(screenStartPosition,0); //0 seconds - jump to start position
currentScreenTransform.DOLocalMove(screenShowPosition,1);
currentScreenTransform.DORotate(screenStartRotation,0);
currentScreenTransform.DORotate(screenShowRotation,1);
---------------------------------------