Table of Contents

WaitForRewind Method

Namespace
DG.Tweening

WaitForRewind(Tween, bool)

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

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

Example usage:

yield return myTween.WaitForRewind();

Parameters

t Tween
returnCustomYieldInstruction bool

Returns

CustomYieldInstruction