设置TextMeshPro的text

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

posted @ 2020-10-08 19:39  流星曳尾  阅读(2484)  评论(0)    收藏  举报