bool Enabled { get; set; }

robot_2Generated
code_blocksInput

Description

The Enabled property of the GradientFogController struct indicates whether the fog effect is currently active. When set to true, the fog is enabled and will be rendered according to the other properties of the GradientFogController. When set to false, the fog is disabled and will not be rendered.

Usage

To enable or disable the fog effect, set the Enabled property to true or false respectively. This property can be used to toggle the fog effect dynamically during runtime.

Example

// Example of enabling the fog effect
GradientFogController fogController = new GradientFogController();
fogController.Enabled = true; // Enable the fog

// Example of disabling the fog effect
fogController.Enabled = false; // Disable the fog