Legacy Documentation: Version 5.1
LanguageEnglish
  • 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

clearDepth Should clear depth buffer?
clearColor Should clear color buffer?
backgroundColor Color to clear with.
depth Depth to clear with (default is 1.0).

Description

Adds a "clear render target" command.