DOTween46
Various utils that require Unity 4.6 or later
Converts the anchoredPosition of the first RectTransform to the second RectTransform,
taking into consideration offset, anchors and pivot, and returns the new anchoredPosition
Methods that extend known Unity objects and allow to directly create and control tweens from their instances.
These, as all DOTween46 methods, require Unity 4.6 or later.
Tweens a CanvasGroup's alpha color to the given value.
Also stores the canvasGroup as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
Tweens an Graphic's color to the given value.
Also stores the image as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
Tweens an Graphic's alpha color to the given value.
Also stores the image as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
Tweens an Image's color to the given value.
Also stores the image as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
Tweens an Image's alpha color to the given value.
Also stores the image as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
Tweens an Image's fillAmount to the given value.
Also stores the image as the tween's target so it can be used for filtered operations
The end value to reach (0 to 1)The duration of the tween
Tweens an Image's colors 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
The gradient to useThe duration of the tween
Tweens an LayoutElement's flexibleWidth/Height to the given value.
Also stores the LayoutElement as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
If TRUE the tween will smoothly snap all values to integers
Tweens an LayoutElement's minWidth/Height to the given value.
Also stores the LayoutElement as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
If TRUE the tween will smoothly snap all values to integers
Tweens an LayoutElement's preferredWidth/Height to the given value.
Also stores the LayoutElement as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
If TRUE the tween will smoothly snap all values to integers
Tweens a Outline's effectColor to the given value.
Also stores the Outline as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
Tweens a Outline's effectColor alpha to the given value.
Also stores the Outline as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
Tweens a Outline's effectDistance to the given value.
Also stores the Outline as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
Tweens a RectTransform's anchoredPosition to the given value.
Also stores the RectTransform as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
If TRUE the tween will smoothly snap all values to integers
Tweens a RectTransform's anchoredPosition X to the given value.
Also stores the RectTransform as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
If TRUE the tween will smoothly snap all values to integers
Tweens a RectTransform's anchoredPosition Y to the given value.
Also stores the RectTransform as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
If TRUE the tween will smoothly snap all values to integers
Tweens a RectTransform's anchoredPosition3D to the given value.
Also stores the RectTransform as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
If TRUE the tween will smoothly snap all values to integers
Tweens a RectTransform's anchorMax to the given value.
Also stores the RectTransform as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
If TRUE the tween will smoothly snap all values to integers
Tweens a RectTransform's anchorMin to the given value.
Also stores the RectTransform as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
If TRUE the tween will smoothly snap all values to integers
Tweens a RectTransform's pivot to the given value.
Also stores the RectTransform as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
Tweens a RectTransform's pivot X to the given value.
Also stores the RectTransform as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
Tweens a RectTransform's pivot Y to the given value.
Also stores the RectTransform as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
Tweens a RectTransform's sizeDelta to the given value.
Also stores the RectTransform as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
If TRUE the tween will smoothly snap all values to integers
Punches a RectTransform's anchoredPosition towards the given direction and then back to the starting one
as if it was connected to the starting position via an elastic.
Also stores the RectTransform as the tween's target so it can be used for filtered operations
The direction and strength of the punch (added to the RectTransform's current position)
The duration of the tween
Indicates how much will the punch vibrate
Represents how much (0 to 1) the vector will go beyond the starting position when bouncing backwards.
1 creates a full oscillation between the punch direction and the opposite direction,
while 0 oscillates only between the punch and the start position
If TRUE the tween will smoothly snap all values to integers
Shakes a RectTransform's anchoredPosition with the given values.
Also stores the RectTransform as the tween's target so it can be used for filtered operations
The duration of the tween
The shake strength
Indicates how much will the shake vibrate
Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
Setting it to 0 will shake along a single direction.
If TRUE the tween will smoothly snap all values to integers
If TRUE the shake will automatically fadeOut smoothly within the tween's duration, otherwise it will not
Shakes a RectTransform's anchoredPosition with the given values.
Also stores the RectTransform as the tween's target so it can be used for filtered operations
The duration of the tween
The shake strength on each axis
Indicates how much will the shake vibrate
Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
Setting it to 0 will shake along a single direction.
If TRUE the tween will smoothly snap all values to integers
If TRUE the shake will automatically fadeOut smoothly within the tween's duration, otherwise it will not
Tweens a RectTransform's anchoredPosition to the given value, while also applying a jump effect along the Y axis.
Returns a Sequence instead of a Tweener.
Also stores the RectTransform as the tween's target so it can be used for filtered operations
The end value to reach
Power of the jump (the max height of the jump is represented by this plus the final Y offset)
Total number of jumps
The duration of the tween
If TRUE the tween will smoothly snap all values to integers
Tweens a ScrollRect's horizontal/verticalNormalizedPosition to the given value.
Also stores the ScrollRect as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
If TRUE the tween will smoothly snap all values to integers
Tweens a ScrollRect's horizontalNormalizedPosition to the given value.
Also stores the ScrollRect as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
If TRUE the tween will smoothly snap all values to integers
Tweens a ScrollRect's verticalNormalizedPosition to the given value.
Also stores the ScrollRect as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
If TRUE the tween will smoothly snap all values to integers
Tweens a Slider's value to the given value.
Also stores the Slider as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
If TRUE the tween will smoothly snap all values to integers
Tweens a Text's color to the given value.
Also stores the Text as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
Tweens a Text's alpha color to the given value.
Also stores the Text as the tween's target so it can be used for filtered operations
The end value to reachThe duration of the tween
Tweens a Text's text to the given value.
Also stores the Text as the tween's target so it can be used for filtered operations
The end string to tween toThe duration of the tween
If TRUE (default), rich text will be interpreted correctly while animated,
otherwise all tags will be considered as normal text
The type of scramble mode to use, if any
A string containing the characters to use for scrambling.
Use as many characters as possible (minimum 10) because DOTween uses a fast scramble mode which gives better results with more characters.
Leave it to NULL (default) to use default ones
Tweens a Graphic's color to the given value,
in a way that allows other DOBlendableColor tweens to work together on the same target,
instead than fight each other as multiple DOColor would do.
Also stores the Graphic as the tween's target so it can be used for filtered operations
The value to tween toThe duration of the tween
Tweens a Image's color to the given value,
in a way that allows other DOBlendableColor tweens to work together on the same target,
instead than fight each other as multiple DOColor would do.
Also stores the Image as the tween's target so it can be used for filtered operations
The value to tween toThe duration of the tween
Tweens a Text's color BY the given value,
in a way that allows other DOBlendableColor tweens to work together on the same target,
instead than fight each other as multiple DOColor would do.
Also stores the Text as the tween's target so it can be used for filtered operations
The value to tween toThe duration of the tween