Answers for "unity change text color"

C#
10

unity change text color

// To change the color of a text, see below
GameObject.GetComponent<Text>().color = Color.black;
Posted by: Guest on February-22-2020
9

unity change text

// To change text of a text UI element use th combination below
textGameObject.GetComponent<UnityEngine.UI.Text>().text = "text";
Posted by: Guest on February-20-2020
0

how to set a color of text in unity 2020 script

TextVar = TextGameObject.color = Color.red;
Posted by: Guest on December-05-2020

C# Answers by Framework

Browse Popular Code Answers by Language