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.


*

Daniele

  • Dr. Admin, I presume
  • *****
  • 378
    • View Profile
    • Demigiant
Re: DOTween Pro Path Editor: Cannot seem to use OnWaypointChange?!
« Reply #1 on: March 10, 2016, 10:15:17 AM »
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:

Code: [Select]
myDOTweenPath.GetTween().OnWaypointChange(myCallback);

Cheers :)
Daniele

*

Daniele

  • Dr. Admin, I presume
  • *****
  • 378
    • View Profile
    • Demigiant
Re: DOTween Pro Path Editor: Cannot seem to use OnWaypointChange?!
« Reply #2 on: March 10, 2016, 10:16:19 AM »
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