Legacy Documentation: Version 2017.1 (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.

Did you find this page useful? Please give it a rating: