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;
how to change textMesh Pro unity
// If you are trying to chnage the text on a TextMeshPro:
public TextMeshPro TextMeshProObject;
//you shouldnt need to get component the editor should take care of this for you when
//you drop it since you have the object set to TextMeshPro and not just GameObject
TextMeshProObject = GetComponent<TextMeshPro>();
TextMeshProObject.text = "Hello";
// If you are trying to change the text from a gameobject:
TextMeshProUGUI TextMeshProLable = YourGameObject.GetComponent<TextMeshProUGUI>();
TextMeshProLable.text = "Your Text"
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