public GameObject tmp; // Start is called before the first frame update void Start() { tmp.GetComponent<TMP_Text>().text = "hahah"; }