Table of Contents

DOFade Method

Namespace
DG.Tweening

DOFade(CanvasGroup, float, float)

public static TweenerCore<float, float, FloatOptions> DOFade(this CanvasGroup target, float endValue, float duration)

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

Parameters

target CanvasGroup
endValue float

The end value to reach

duration float

The duration of the tween

Returns

TweenerCore<float, float, FloatOptions>

DOFade(Graphic, float, float)

public static TweenerCore<Color, Color, ColorOptions> DOFade(this Graphic target, float endValue, float duration)

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

Parameters

target Graphic
endValue float

The end value to reach

duration float

The duration of the tween

Returns

TweenerCore<Color, Color, ColorOptions>

DOFade(Image, float, float)

public static TweenerCore<Color, Color, ColorOptions> DOFade(this Image target, float endValue, float duration)

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

Parameters

target Image
endValue float

The end value to reach

duration float

The duration of the tween

Returns

TweenerCore<Color, Color, ColorOptions>

DOFade(Outline, float, float)

public static TweenerCore<Color, Color, ColorOptions> DOFade(this UnityEngine.UI.Outline target, float endValue, float duration)

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

Parameters

target Outline
endValue float

The end value to reach

duration float

The duration of the tween

Returns

TweenerCore<Color, Color, ColorOptions>

DOFade(Text, float, float)

public static TweenerCore<Color, Color, ColorOptions> DOFade(this UnityEngine.UI.Text target, float endValue, float duration)

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

Parameters

target Text
endValue float

The end value to reach

duration float

The duration of the tween

Returns

TweenerCore<Color, Color, ColorOptions>