Table of Contents

WaitForCompletion Method

Namespace
DG.Tweening

WaitForCompletion(Tween, bool)

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

Returns a CustomYieldInstruction that waits until the tween is killed or complete. It can be used inside a coroutine as a yield.

Example usage:

yield return myTween.WaitForCompletion(true);

Parameters

t Tween
returnCustomYieldInstruction bool

Returns

CustomYieldInstruction