Table of Contents

DOFade Method

Namespace
DG.Tweening

DOFade(SpriteRenderer, float, float)

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

Tweens a Material's alpha color to the given value. Also stores the spriteRenderer as the tween's target so it can be used for filtered operations

Parameters

target SpriteRenderer
endValue float

The end value to reach

duration float

The duration of the tween

Returns

TweenerCore<Color, Color, ColorOptions>