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.

CanvasRenderer.SetAlpha

Switch to Manual
public void SetAlpha(float alpha);

Parameters

alpha Alpha.

Description

Set the alpha of the renderer. Will be multiplied with the UIVertex alpha and the Canvas alpha.