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

Color.a

public float a;

Description

Alpha component of the color (0 is transparent, 1 is opaque).

using UnityEngine;

public class Example : MonoBehaviour { public Color color = Color.white;

void Start() { color.a = 0.42f; } }

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