Unity更改Button的Text内容
2018-11-10 本文已影响34人
小猪圣骑士
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());