Text text = btn.transform.Find("Text").GetComponent<Text>();
text.text = RecordPos.str1;
Debug.Log(text.text.ToString());
Text text = btn.transform.Find("Text").GetComponent<Text>();
text.text = RecordPos.str1;
Debug.Log(text.text.ToString());
本文标题:Unity更改Button的Text内容
本文链接:https://www.haomeiwen.com/subject/hyctfqtx.html
网友评论