📜  获取文本组件 unity - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:13.346000             🧑  作者: Mango

代码示例3
Text text = gameObj.GetComponentInChildren(typeof(Text)) as Text;
text.text = "text stuff";
text.font = prefferedFont;