Description
The AutoExposureEnabled
property of the Tonemapping
class determines whether automatic exposure adjustment is enabled for the camera. When set to true
, the camera will automatically adjust its exposure based on the scene's lighting conditions, providing a more dynamic and realistic visual experience.
Usage
To enable or disable automatic exposure in your scene, you can set the AutoExposureEnabled
property on an instance of the Tonemapping
component. This is typically done in the setup or initialization phase of your scene or camera configuration.
Example
// Example of enabling auto exposure on a Tonemapping component
Tonemapping tonemapping = new Tonemapping();
tonemapping.AutoExposureEnabled = true; // Enable auto exposure
// Example of disabling auto exposure
// tonemapping.AutoExposureEnabled = false; // Disable auto exposure