public string text ;

Descripción

El texto mostrado.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { GetComponent<TextMesh>().text = "Hello World"; } }