Skip to content

onComplete

Jan-Ole Schümann edited this page Jun 3, 2017 · 5 revisions

Keyword: onComplete

Defines the method which is called after the tween has finished playing.

Parameter: Action or Action<object>

Example: "onComplete", onTweenCompete

In this example, the method "onTweenComplete" is called after 5 seconds when the tween has finished playing.

tweenSharp1 = new TweenSharp(gameObject, 5f, new 
{
	x = 8f,
	onComplete = new Action(onTweenComplete)
} );

private void onTweenComplete()
{
	// do something here
}
Clone this wiki locally