DOFade Method
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
targetSpriteRendererendValuefloatThe end value to reach
durationfloatThe duration of the tween
Returns
- TweenerCore<Color, Color, ColorOptions>