【发布时间】:2018-02-11 15:23:33
【问题描述】:
怎么了。
我正在实例化一个文本框游戏对象。 然后用文本填充它。
有什么方法可以让文本框高度动态变化?
GameObject reply1 = Instantiate(replyText, transform.position,
transform.rotation);
reply1.transform.SetParent(textArea.transform, false);
Text reply1text = reply1.GetComponent<Text>();
reply1text.text = gameRounds[roundCount].reply[0];
宽度没问题,不用改。
【问题讨论】:
标签: c# user-interface unity3d