robot_2Generated
code_blocksInput

Description

The ClearFlags.None field is a member of the ClearFlags enumeration in the Sandbox namespace. It represents a state where no buffers are cleared before rendering a scene using a SceneCamera. This can be useful when you want to preserve the current contents of the render target and avoid clearing any part of it.

Usage

Use ClearFlags.None when you do not want to clear any buffers before rendering. This is typically used in scenarios where the existing content of the render target should be preserved, such as when rendering overlays or when the previous frame's content is still relevant.

Example

// Example of using ClearFlags.None
SceneCamera camera = new SceneCamera();
camera.ClearFlags = ClearFlags.None;

// This will render the scene without clearing any buffers, preserving the current content of the render target.