This version of Unity is unsupported.

TextMesh.text

Switch to Manual
public string text;

Description

The text that is displayed.

See Also: text mesh component.

using UnityEngine;

public class Example : MonoBehaviour { void Start() { // Set the text of the attached Text mesh GetComponent<TextMesh>().text = "Hello World"; } }