how to find a text component unity code example Example: get text component unity GameObject.GetComponent<Text>().text = "Hello World!";