# oldRenderTexture

> (Read Only) The value of RenderTexture.active at the time CreateRenderTargets is called.

## Definition

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

```csharp
public RenderTexture oldRenderTexture { get; }
```

### Remarks

[PaintContext.Cleanup](/engine/6000.7/script-reference/unityengine/terraintools/paintcontext/cleanup.md) uses this value to restore the active RenderTexture to its original value. In some cases, it may be necessary to manually restore the RenderTexture before calling Cleanup:

`RenderTexture.active = PaintContext.oldRenderTexture;`

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