ClearFlags ClearFlags { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The ClearFlags property of the SceneCamera class specifies the type of clearing operation that should be performed before rendering begins. This property determines how the camera clears the screen, which can affect the visual output of the rendered scene.

Usage

To use the ClearFlags property, you can set it to one of the values defined in the Sandbox.ClearFlags enumeration. This will dictate how the camera clears the screen before rendering each frame. Common options include clearing the color buffer, depth buffer, or both.

Example

// Example of setting the ClearFlags property
SceneCamera camera = new SceneCamera();
camera.ClearFlags = ClearFlags.Color | ClearFlags.Depth;