Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

CommandBuffer.ClearRenderTarget

Switch to Manual
public function ClearRenderTarget(clearDepth: bool, clearColor: bool, backgroundColor: Color, depth: float = 1.0f): void;

Parameters

clearDepthShould clear depth buffer?
clearColorShould clear color buffer?
backgroundColorColor to clear with.
depthDepth to clear with (default is 1.0).

Description

Adds a "clear render target" command.