unity的inputField文本框赋值问题
GameObject t = GameObject.Find("InputFieldT");
Text tt = t.transform.Find("Text").GetComponent<Text>();
tt.text = "ComputeButton_Click";//无效
//t.GetComponent<InputField>().text = "ComputeButton_Click";//有效
posted on 2018-03-29 16:27 jiahuafu 阅读(10928) 评论(2) 编辑 收藏 举报