Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Graphic.CrossFadeColor

Switch to Manual
public function CrossFadeColor(targetColor: Color, duration: float, ignoreTimeScale: bool, useAlpha: bool): void;

Parameters

targetColorTarget color.
durationTween duration.
ignoreTimeScaleShould ignore Time.scale?
useAlphaShould also Tween the alpha channel?

Description

Tweens the CanvasRenderer color associated with this Graphic.