设置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  流星曳尾  阅读(2465)  评论(0编辑  收藏  举报