unity change text color
// To change the color of a text, see below
GameObject.GetComponent<Text>().color = Color.black;
unity change text color
// To change the color of a text, see below
GameObject.GetComponent<Text>().color = Color.black;
unity change text
// To change text of a text UI element use th combination below
textGameObject.GetComponent<UnityEngine.UI.Text>().text = "text";
how to set a color of text in unity 2020 script
TextVar = TextGameObject.color = Color.red;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us