Force iTween to complete

Hello there,
I need to force an iTween to complete suddenly and trig oncomplete event. But I can’t find how to do that. The iTween.Stop() can only stop the tween in midway.
This is expected to be used when skipping the dialogs and so on. Is there someway to do this? Thanks!

There’s nothing out of the box, AFAIK. However iTween works by temporarily adding an iTween component per tween to the GameObject, and these components have publicly accessible members, with which you can change the duration of the tween… If you don’t mind that it’s a bit of a hack, you could do something like this:

			iTween[] tweens = GetComponents<iTween>();
			foreach (iTween tween in tweens) {
				tween.time = 0;
				tween.SendMessage("Update");
			}