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