Unity3D 改变按钮的内容方法 找到此按钮的Text组件 代码: Button btn; btn = this.GetComponent(); Text t = btn.transform.Find(“Text”).GetComponent (); t.text = “修改后的按钮内容”;