📜  unity 设置文本值 - C# 代码示例

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

代码示例2
//Because the Text variable is public, 
//you will have to drag the Text box object onto the script in unity.
//So unity knows what text box to apply the script to.

public Text myText;
myText.text = "Enter the text value here!";

By: Barry Cox