jiahuafu

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";//有效

分类:

技术点:

相关文章:

  • 2021-09-07
  • 2021-09-26
  • 2021-08-12
  • 2022-12-23
  • 2021-06-22
  • 2021-08-23
  • 2021-10-19
  • 2022-01-02
猜你喜欢
  • 2021-08-06
  • 2021-11-12
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
相关资源
相似解决方案