# AddCommandBuffer(CameraEvent, CommandBuffer)

> Add a command buffer to be executed at a specified place.

## Definition

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

```csharp
public void AddCommandBuffer(CameraEvent evt, CommandBuffer buffer)
```

### Parameters

**** (\[CameraEvent]\(/engine/6000.7/script-reference/unityengine/rendering/cameraevent)): When to execute the command buffer during rendering.**** (\[CommandBuffer]\(/engine/6000.7/script-reference/unityengine/rendering/commandbuffer)): The buffer to execute.

### Remarks

Multiple command buffers can be set to execute at the same camera event (or even the same buffer can be added multiple times). To remove command buffer from execution, use [Camera.RemoveCommandBuffer](/engine/6000.7/script-reference/unityengine/camera/removecommandbuffer.md). This API is only available with the Built-in renderer.

Additional Resources: [CommandBuffer](/engine/6000.7/script-reference/unityengine/rendering/commandbuffer.md), [Camera.RemoveCommandBuffer](/engine/6000.7/script-reference/unityengine/camera/removecommandbuffer.md), [Camera.GetCommandBuffers](/engine/6000.7/script-reference/unityengine/camera/getcommandbuffers.md).
