DOTweenModuleUnityVersion Class
public static class DOTweenModuleUnityVersion
Shortcuts/functions that are not strictly related to specific Modules but are available only on some Unity versions
- Inheritance
-
DOTweenModuleUnityVersion
Methods
- DOGradientColor(Material, Gradient, float)
Tweens a Material's color using the given gradient (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener). Also stores the image as the tween's target so it can be used for filtered operations
- DOGradientColor(Material, Gradient, string, float)
Tweens a Material's named color property using the given gradient (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener). Also stores the image as the tween's target so it can be used for filtered operations
- DOOffset(Material, Vector2, int, float)
Tweens a Material's named texture offset property with the given ID to the given value. Also stores the material as the tween's target so it can be used for filtered operations
- DOTiling(Material, Vector2, int, float)
Tweens a Material's named texture scale property with the given ID to the given value. Also stores the material as the tween's target so it can be used for filtered operations
- WaitForCompletion(Tween, bool)
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);
- WaitForElapsedLoops(Tween, int, bool)
Returns a CustomYieldInstruction that waits until the tween is killed or has gone through the given amount of loops. It can be used inside a coroutine as a yield.
Example usage:
yield return myTween.WaitForElapsedLoops(2);
- WaitForKill(Tween, bool)
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();
- WaitForPosition(Tween, float, bool)
Returns a CustomYieldInstruction that waits until the tween is killed or has reached the given time position (loops included, delays excluded). It can be used inside a coroutine as a yield.
Example usage:
yield return myTween.WaitForPosition(2.5f);
- WaitForRewind(Tween, bool)
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();
- WaitForStart(Tween, bool)
Returns a CustomYieldInstruction that waits until the tween is killed or started (meaning when the tween is set in a playing state the first time, after any eventual delay). It can be used inside a coroutine as a yield.
Example usage:
yield return myTween.WaitForStart();