Documentation

Unity Engine

Download Unity

Unity Engine

GetCommandBuffers(CameraEvent)

Get command buffers to be executed at a specified place. This API is only available with the Built-in renderer.
Read time 1 minuteLast updated 7 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Warning
Deprecated. Camera.GetCommandBuffers is deprecated and will be removed in a future release. It has no effect because the Built-In Render Pipeline is removed. To inject rendering commands, use a ScriptableRenderPass in the Universal Render Pipeline (URP) or a Custom Pass in the High Definition Render Pipeline (HDRP) instead. #from(7000.0)
public CommandBuffer[] GetCommandBuffers(CameraEvent evt)

Parameters

When to execute the command buffer during rendering.

Returns

Type

Description

CommandBuffer[]Array of command buffers.

Remarks

GetCommandBuffers
is deprecated and will be removed in a future release. It has no effect because the Built-In Render Pipeline is removed. To inject rendering commands, use a ScriptableRenderPass in the Universal Render Pipeline (URP) or a Custom Pass in the High Definition Render Pipeline (HDRP) instead. Additional Resources: CommandBuffer, Camera.AddCommandBuffer, Camera.RemoveCommandBuffer.