AddCommandBuffer(CameraEvent, CommandBuffer)
Add a command buffer to be executed at a specified place.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public void AddCommandBuffer(CameraEvent evt, CommandBuffer buffer)
Parameters
When to execute the command buffer during rendering.
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. This API is only available with the Built-in renderer.