get text unity
numericalScore.GetComponent<UnityEngine.UI.Text>().text = "Score : " + scoreManager.score;
get text unity
numericalScore.GetComponent<UnityEngine.UI.Text>().text = "Score : " + scoreManager.score;
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;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us