Table of Contents

WaitForKill Method

Namespace
DG.Tweening

WaitForKill(Tween, bool)

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

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

Example usage:

yield return myTween.WaitForKill();

Parameters

t Tween
returnCustomYieldInstruction bool

Returns

CustomYieldInstruction