# GatherHoles()

> Gathers the Terrain holes information into sourceRenderTexture.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.TerrainTools](/engine/6000.6/script-reference/unityengine/terraintools.md)
* **Assembly:** UnityEngine.TerrainModule

```csharp
public void GatherHoles()
```

### Remarks

This function collects the Terrain holes data from all Terrain tiles in the Paint Context, and saves the information in `sourceRenderTexture`.

This function is called internally by [TerrainPaintUtility.BeginPaintHoles](/engine/6000.6/script-reference/unityengine/terraintools/terrainpaintutility/beginpaintholes.md).

Additional Resources: [PaintContext.ScatterHoles](/engine/6000.6/script-reference/unityengine/terraintools/paintcontext/scatterholes.md).
