book_4_sparkGenerated
code_blocksInput

Description

The QuadOverdraw field is a member of the SceneCameraDebugMode enumeration in the Sandbox API. It represents a specific debug mode for the scene camera that visualizes quad overdraw. Quad overdraw is a rendering issue where multiple layers of geometry are drawn over each other, which can lead to performance inefficiencies. This mode helps developers identify and optimize areas in their scenes where overdraw is excessive.

Usage

To use the QuadOverdraw mode, set the scene camera's debug mode to SceneCameraDebugMode.QuadOverdraw. This will change the camera's rendering to highlight areas with high overdraw, allowing you to make necessary adjustments to improve rendering performance.

Example

// Example of setting the scene camera to Quad Overdraw mode
SceneCamera camera = Scene.Current.Camera;
camera.DebugMode = SceneCameraDebugMode.QuadOverdraw;