Version: 2023.2
언어: 한국어
public string text ;

설명

The text that is displayed.

Additional resources: text mesh component.

using UnityEngine;

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