# treeDistance

> The maximum distance at which trees are rendered.

## Definition

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

```csharp
public float treeDistance { get; set; }
```

### Remarks

The higher this is, the further the distance trees can be seen and the slower it will run.

Additional Resources: [Terrain.treeBillboardDistance](/engine/6000.0/script-reference/unityengine/terrain/treebillboarddistance.md).

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        Terrain.activeTerrain.treeDistance = 2000;
    }
}
```
