Table of Contents

WaitForStart Method

Namespace
DG.Tweening

WaitForStart(Tween, bool)

public static CustomYieldInstruction WaitForStart(this Tween t, bool returnCustomYieldInstruction)

Returns a CustomYieldInstruction that waits until the tween is killed or started (meaning when the tween is set in a playing state the first time, after any eventual delay). It can be used inside a coroutine as a yield.

Example usage:

yield return myTween.WaitForStart();

Parameters

t Tween
returnCustomYieldInstruction bool

Returns

CustomYieldInstruction