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