Answers for "how do i get the input text unity"

C#
1

get text unity

numericalScore.GetComponent<UnityEngine.UI.Text>().text = "Score : " + scoreManager.score;
Posted by: Guest on July-18-2021
3

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;
    }
Posted by: Guest on May-28-2021

Code answers related to "how do i get the input text unity"

C# Answers by Framework

Browse Popular Code Answers by Language