void ClearCommandLists( Stage stage )
void ClearCommandLists()

robot_2Generated
code_blocksInput

Description

The ClearCommandLists method is used to remove all command list entries from a specified rendering stage within the CameraComponent. This is useful for clearing out any previously set rendering commands that are no longer needed or need to be reset.

Usage

To use the ClearCommandLists method, you need to have an instance of CameraComponent and a valid Stage object. Call the method with the stage you want to clear:

Example

CameraComponent cameraComponent = new CameraComponent();
Sandbox.Rendering.Stage stage = Sandbox.Rendering.Stage.Opaque;

// Clear all command lists from the specified stage
cameraComponent.ClearCommandLists(stage);