unity how to change text opacity code example
Example 1: unity change text color
// To change the color of a text, see below
GameObject.GetComponent<Text>().color = Color.black;
Example 2: css change text color
p{
color: White;
}
// To change the color of a text, see below
GameObject.GetComponent<Text>().color = Color.black;
p{
color: White;
}