# treeInstances

> Contains the current trees placed in the terrain.

## Definition

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

```csharp
public TreeInstance[] treeInstances { get; set; }
```

### Remarks

Note that setting the treeInstances property will not automatically snap Tree instances onto the surface of the Terrain heightmap. To do so, use [TerrainData.SetTreeInstances](/engine/6000.5/script-reference/unityengine/terraindata/settreeinstances.md) instead.
