Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

Graphic.CrossFadeAlpha

public void CrossFadeAlpha(float alpha, float duration, bool ignoreTimeScale);

Parameters

alpha Target alpha.
duration Duration of the tween in seconds.
ignoreTimeScale Should ignore Time.scale?

Description

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