input field unity UI code example
Example: how to use input field unity
public string theName;
public GameObject inputField;
public GameObject textDisplay;
public void StoreName()
{
theName = inputField.GetComponent().text;
textDisplay.GetComponent().text = theName;
}