book_4_sparkGenerated
code_blocksInput

Description

The Reflect field is a member of the SceneCameraDebugMode enumeration in the Sandbox API. This field represents a specific debug mode for the scene camera, which is used to visualize reflection data within the scene. When this mode is active, the camera will render the scene with a focus on reflective surfaces, allowing developers to analyze how reflections are being handled in the current scene setup.

Usage

To use the Reflect debug mode, set the scene camera's debug mode to SceneCameraDebugMode.Reflect. This can be useful for debugging and optimizing reflection effects in your game or application.

Example

// Example of setting the scene camera debug mode to Reflect
SceneCamera camera = Scene.Current.Camera;
camera.DebugMode = SceneCameraDebugMode.Reflect;