“Unity Change Text” Réponses codées

Unity Change Text

// To change text of a text UI element use th combination below
textGameObject.GetComponent<UnityEngine.UI.Text>().text = "text";
SkelliBoi

Unity Set Text Valeur

//Because the Text variable is public, 
//you will have to drag the Text box object onto the script in unity.
//So unity knows what text box to apply the script to.

public Text myText;
myText.text = "Enter the text value here!";

By: Barry Cox
Dirty Moose

Réponses similaires à “Unity Change Text”

Questions similaires à “Unity Change Text”

Plus de réponses similaires à “Unity Change Text” dans C#

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code