Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Camera.SetTargetBuffers

Switch to Manual
SetTargetBuffers(colorBuffer: RenderBuffer, depthBuffer: RenderBuffer): void;
void SetTargetBuffers(RenderBuffer colorBuffer, RenderBuffer depthBuffer);
def SetTargetBuffers(colorBuffer as RenderBuffer, depthBuffer as RenderBuffer) as void
SetTargetBuffers(colorBuffer: RenderBuffer[], depthBuffer: RenderBuffer): void;
void SetTargetBuffers(RenderBuffer[] colorBuffer, RenderBuffer depthBuffer);
def SetTargetBuffers(colorBuffer as RenderBuffer[], depthBuffer as RenderBuffer) as void

Parameters

colorBufferThe RenderBuffer to which color information will be rendered.
depthBufferThe RenderBuffer to which depth information will be rendered.

Description

Sets the Camera to render to the chosen buffers of one or more RenderTextures.