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.CrossFadeAlpha

Switch to Manual
public function CrossFadeAlpha(alpha: float, duration: float, ignoreTimeScale: bool): void;

Parameters

alphaTarget alpha.
durationDuration of the tween in seconds.
ignoreTimeScaleShould ignore Time.scale?

Description

Tweens the alpha of the CanvasRenderer color associated with this Graphic.