DOColor Method
DOColor(Graphic, Color, float)
public static TweenerCore<Color, Color, ColorOptions> DOColor(this Graphic target, Color endValue, float duration)
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
Parameters
targetGraphicendValueColorThe end value to reach
durationfloatThe duration of the tween
Returns
- TweenerCore<Color, Color, ColorOptions>
DOColor(Image, Color, float)
public static TweenerCore<Color, Color, ColorOptions> DOColor(this Image target, Color endValue, float duration)
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
Parameters
targetImageendValueColorThe end value to reach
durationfloatThe duration of the tween
Returns
- TweenerCore<Color, Color, ColorOptions>
DOColor(Outline, Color, float)
public static TweenerCore<Color, Color, ColorOptions> DOColor(this UnityEngine.UI.Outline target, Color endValue, float duration)
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
Parameters
targetOutlineendValueColorThe end value to reach
durationfloatThe duration of the tween
Returns
- TweenerCore<Color, Color, ColorOptions>
DOColor(Text, Color, float)
public static TweenerCore<Color, Color, ColorOptions> DOColor(this UnityEngine.UI.Text target, Color endValue, float duration)
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
Parameters
targetTextendValueColorThe end value to reach
durationfloatThe duration of the tween
Returns
- TweenerCore<Color, Color, ColorOptions>