Demigiant Forum

Unity Assets => DOTween & DOTween Pro => Topic started by: r2digi on December 23, 2015, 09:19:51 PM

Title: DOTweenPath and DOGoto not working
Post by: r2digi on December 23, 2015, 09:19:51 PM
I'm trying to rig up a Camera onto a DOTweenPath. We then tie it to a TouchKit and want the camera to move along the path depending on panning touches.  So like if a path were normalized from 0.0 -> 1.0,  we move the camera towards 0.0 as the user panned to the right, and towards 1.0 as the user panned to the left. 

I'm just doing a simple DOGoto with the DOTweenPath not active yet, but it doesn't do anything? what am I missing her?

Title: Re: DOTweenPath and DOGoto not working
Post by: Daniele on January 09, 2016, 02:09:24 AM
Hi, and sorry for the delayed reply (forum notifications got messed up and didn't reach me).

If the DOTweenPath is inactive, it means the tween hasn't been created yet, so the Goto will fail. If you don't want the tween to start automatically, just uncheck AutoPlay on the behaviour without deactivating it. Then Goto will work.

On a secondary note, I'm working on a similar project that uses a path with panning touches. Instead of Goto, I'm simply changing the tween's timeScale depending on the pan power.

Cheers,
Daniele