# alignment

> How lines of text are aligned (Left, Right, Center).

## Definition

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

```csharp
public TextAlignment alignment { get; set; }
```

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        GetComponent<TextMesh>().alignment = TextAlignment.Left;
    }
}
```
