Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

TextMesh.text

Switch to Manual
public string text;

Description

The text that is displayed.

using UnityEngine;

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

Did you find this page useful? Please give it a rating: