📜  如何使用输入字段统一 - 无论代码示例

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

代码示例1
public string theName;
    public GameObject inputField;
    public GameObject textDisplay;
    
    public void StoreName()
    {
        theName = inputField.GetComponent().text;
        textDisplay.GetComponent().text = theName;
    }