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