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

CommandBuffer.ClearRenderTarget

public void ClearRenderTarget(bool clearDepth, bool clearColor, Color backgroundColor, float depth = 1.0f);

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.

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