RemoveCommandBuffer(CameraEvent, CommandBuffer)
Remove command buffer from execution at a specified place.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public void RemoveCommandBuffer(CameraEvent evt, CommandBuffer buffer)
Parameters
When to execute the command buffer during rendering.
The buffer to execute.
Remarks
If the same buffer is added multiple times on this camera event, all occurrences of it will be removed. This API is only available with the Built-in renderer.
Additional Resources: CommandBuffer, Camera.RemoveCommandBuffers, Camera.RemoveAllCommandBuffers, Camera.AddCommandBuffer, Camera.GetCommandBuffers.