# ReleaseContextResources(PaintContext)

> Releases the allocated resources of the specified PaintContext.

## Definition

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

```csharp
public static void ReleaseContextResources(PaintContext ctx)
```

### Parameters

**** (\[PaintContext]\(/engine/6000.7/script-reference/unityengine/terraintools/paintcontext)): The PaintContext containing the resources to release.

### Remarks

Additional Resources: [PaintContext.Cleanup](/engine/6000.7/script-reference/unityengine/terraintools/paintcontext/cleanup.md)
