WaitForStart Method
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
tTweenreturnCustomYieldInstructionbool
Returns
- CustomYieldInstruction