Demigiant Forum
		Unity Assets => DOTween & DOTween Pro => Topic started by: princemoonrise on March 08, 2016, 09:40:56 PM
		
			
			- 
				Last question I asked wasn't stated clearly so I'll try again.
 
 I cannot find any documentation on how to use OnWaypointChange in conjunction with the DOTween Pro Path / Visual editor.  Events such as OnComplete have have boxes in the inspector that can be used to trigger functions in scripts, but I don't see that sort of functionality for the waypoints.  I tried to use OnWaypointChange in a script but couldn't get it to do anything with the path waypoints in the editor/inspector (does it only work with ones that are specified in code?).
 
 Can someone provide an example of how to use OnWaypointChange in a way that can reference the waypoints I am using in the DOTween Pro Path Visual Editor in a script?
 
 I'm really stuck so some insight would be greatly appreciated, thanks.
 
 
- 
				Hi!
 
 A DOTweenPath and a Tween/Sequence are two different things. So if you want to use OnWaypointChange you have to get the DOTweenPath's tween, and then add the callback to it, like this:
 
 myDOTweenPath.GetTween().OnWaypointChange(myCallback);
 
 Cheers :)
 Daniele
- 
				P.S. Apologies! I just saw that you already asked this question and I missed it. There was a giant flow of spam in the forum recently, and it kind of messed things up :B