Get Text Component Of Input Field Unity 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>().text;
textDisplay.GetComponent<Text>().text = theName;
}

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable