unity text color using script code example Example: how to set a color of text in unity 2020 script TextVar = TextGameObject.color = Color.red;