public string text ;

Description

显示的文本。

另请参阅:text mesh component

using UnityEngine;

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