float MaximumOpacity { get; set; }

robot_2Generated
code_blocksInput

Description

The MaximumOpacity property of the GradientFogController class specifies the maximum opacity level of the fog effect. This property determines how dense the fog can appear at its thickest point. The value is a float representing the opacity, where 0.0 means fully transparent and 1.0 means fully opaque.

Usage

To adjust the maximum opacity of the fog, set the MaximumOpacity property to a desired value between 0.0 and 1.0. This will control how visible the fog is at its maximum density.

Example

// Example of setting the MaximumOpacity property
GradientFogController fogController = new GradientFogController();
fogController.MaximumOpacity = 0.75f; // Set the fog to be 75% opaque at its maximum density