Documentation

Unity Engine

Unity Engine

SetTargetBuffers

Sets the Camera to render to the chosen buffers of one or more RenderTextures.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

SetTargetBuffers(RenderBuffer, RenderBuffer)

Sets the Camera to render to the chosen buffers of one or more RenderTextures.
public void SetTargetBuffers(RenderBuffer colorBuffer, RenderBuffer depthBuffer)

Parameters

colorBuffer

The RenderBuffer(s) to which color information will be rendered.

depthBuffer

The RenderBuffer to which depth information will be rendered.

Remarks

SetTargetBuffers(RenderBuffer[], RenderBuffer)

Sets the Camera to render to the chosen buffers of one or more RenderTextures.
public void SetTargetBuffers(RenderBuffer[] colorBuffer, RenderBuffer depthBuffer)

Parameters

colorBuffer

The RenderBuffer(s) to which color information will be rendered.

depthBuffer

The RenderBuffer to which depth information will be rendered.

Remarks