语言English
  • C#

TextMesh.text

切换到手册
public string text;

描述

显示的文本。

其他资源:文本网格组件

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: