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

Script language

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


Suggest a change


Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.


Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.



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


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


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