# anchor

> Which point of the text shares the position of the Transform.

## Definition

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

```csharp
public TextAnchor anchor { get; set; }
```

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        GetComponent<TextMesh>().anchor = TextAnchor.MiddleCenter;
    }
}
```
