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; } }
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; } }