Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

Camera.SetTargetBuffers

Switch to Manual
public method SetTargetBuffers(colorBuffer: RenderBuffer, depthBuffer: RenderBuffer): void;
public method SetTargetBuffers(colorBuffer: RenderBuffer[], depthBuffer: RenderBuffer): void;

Parameters

colorBufferThe RenderBuffer(s) 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.

Did you find this page useful? Please give it a rating: