Table of Contents

DOBlendableColor Method

Namespace
DG.Tweening

DOBlendableColor(SpriteRenderer, Color, float)

public static Tweener DOBlendableColor(this SpriteRenderer target, Color endValue, float duration)

Tweens a SpriteRenderer's color to the given value, in a way that allows other DOBlendableColor tweens to work together on the same target, instead than fight each other as multiple DOColor would do. Also stores the SpriteRenderer as the tween's target so it can be used for filtered operations

Parameters

target SpriteRenderer
endValue Color

The value to tween to

duration float

The duration of the tween

Returns

Tweener