Documentation

Unity Engine

Download Unity

Unity Engine

RemoveCommandBuffers(LightEvent)

Remove command buffers from execution at a specified place.
Read time 1 minuteLast updated 7 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Warning
Deprecated. Light.RemoveCommandBuffers 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 void RemoveCommandBuffers(LightEvent evt)

Parameters

When to execute the command buffer during rendering.

Remarks

RemoveCommandBuffers
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. This function removes all command buffers set on the specified light event.
Important: This API is compatible only with the Built-In Render Pipeline.