unity write all text code example
Example 1: unity change text
// To change text of a text UI element use th combination below
textGameObject.GetComponent<UnityEngine.UI.Text>().text = "text";
Example 2: unity pop up text
IEnumerator ShowMessage (string message, float delay) { guiText.text = message; guiText.enabled = true; yield return new WaitForSeconds(delay); guiText.enabled = false; }