unity set text value
//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// To change text of a text UI element use th combination below
textGameObject.GetComponent<UnityEngine.UI.Text>().text = "text";
Also in C#:
- c# console writeline color
- c# else if
- C# get pc language
- constructor in inherited class c#
- c# loop datatable rows
- how to put double quotes in a string c#
- Unity if object doens't exist
- c# remove last character from string
- never lose focus textbox c#
- c# getter setter
- c# list to string comma separated
- declare string array c# without size
- how to edit a c# list
- raycast unity
- how to make rb.addforce 2d
- singleton unity
- how to join array indexes with comma in c#
- c# read file stream
- go right unity
- c# input integer
- get web config key value in c# razor view
- c# remove character from string at index
- c# string remove special characters
- c# param exception