Table of Contents

DOColor Method

Namespace
DG.Tweening

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

target Graphic
endValue Color

The end value to reach

duration float

The 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

target Image
endValue Color

The end value to reach

duration float

The 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

target Outline
endValue Color

The end value to reach

duration float

The 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

target Text
endValue Color

The end value to reach

duration float

The duration of the tween

Returns

TweenerCore<Color, Color, ColorOptions>