Skip to content

Format

typescript
Graphics.Clear(clearDepth, clearColor, backgroundColor, depth)

class: Graphics

Description

Clears the current target render object to the specified color and depth.

Parameters

param_nametypedescription
clearDepthbooleanWhether to clear the depth.
clearColorbooleanWhether to clear the color.
backgroundColorColorThe color value.
depthnumber?The depth value.

Return

typedescription
void

Code Example