# ReleaseTemporaryRT(int)

> Add a "release a temporary render texture" command.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Rendering](/engine/6000.0/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public void ReleaseTemporaryRT(int nameID)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Shader property name for this texture.

### Remarks

Releases a temporary render texture with given name. Presumably you have called ::GetTemporaryRT to create it before.

Any temporary textures that were not explicitly released will be removed after camera is done rendering, or after [Graphics.ExecuteCommandBuffer](/engine/6000.0/script-reference/unityengine/graphics/executecommandbuffer.md) is done.

Additional Resources: [CommandBuffer.GetTemporaryRT](/engine/6000.0/script-reference/unityengine/rendering/commandbuffer/gettemporaryrt.md).
