# text

> The text that is displayed.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.TextRenderingModule

```csharp
public string text { get; set; }
```

### Remarks

Additional Resources: [text mesh component](/engine/6000.0/manual/assets-and-media/asset-types/mesh/text-meshes/class-text.md).

### Examples

```csharp
using UnityEngine;

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