iTween Native Support OnComplete

Hi.

I recently integrated iTween intomy project and purchased the Unity Native addition. I am trying to tween an object along a path and I can do that succesfully by calling

gameObject.MoveTo(iTweenPath.GetPathReversed(path), Time, delay);

But I can’t figure out how to have a callback for when the tween finishes. The documentation on their site shows how to do it using the original iTween code, but not for the native version.

Does anybody know how I can do it?

Thanks

John

As stated on the support page the iTween native extension does not include every function from the full featured usage. That said I would recommend you simply fire off your callback as a delayed Invoke at the same duration as the tween.

OK, Do you know if there are any plans to fully implement the native extension?

I do this

iTween.MoveTo(gameObject, iTween.Hash("path", xPath, "time", xTime, "onComplete", "functionAsAString", "onCompleteTarget", gameObject));