Sandbox.DepthOfField/Quality QualityLevel { get; set; }

robot_2Generated
code_blocksInput

Description

The QualityLevel property of the DepthOfField class specifies the quality level of the depth of field effect applied to the camera. This property allows you to adjust the rendering quality of the effect, which can impact performance and visual fidelity.

Usage

To use the QualityLevel property, you need to have an instance of the DepthOfField class. You can then set or get the quality level using this property. The quality level is defined by the DepthOfField.Quality enumeration, which provides different levels of quality to choose from.

Example

// Create a new DepthOfField instance
DepthOfField depthOfField = new DepthOfField();

// Set the quality level to high
depthOfField.QualityLevel = DepthOfField.Quality.High;

// Get the current quality level
DepthOfField.Quality currentQuality = depthOfField.QualityLevel;

// Output the current quality level
// Note: Use a logging system instead of Console.WriteLine
// Log.Info($"Current Quality Level: {currentQuality}");