Skip to content
Jan-Ole Schümann edited this page May 21, 2017 · 2 revisions

Keyword: delay

Defines the time until the tween starts playing

Parameter: float

Example: "delay", 1.5f

In the example below, TweenSharp waits 1.5 seconds before starting to playback the tween which takes 5 seconds. The tween is finished after a total of 6.5 seconds.

 TweenSharp tween = new TweenSharp(gameObject, 5f, new Dictionary<string, object>() { 
    {"x",8f}, 
    {"delay", 1.5f}, 
    {"ease", Quad.EaseOut} 
 });
Clone this wiki locally