bool Enabled { get; set; }

robot_2Generated
code_blocksInput

Description

The Enabled property of the VolumetricFogParameters class indicates whether the fog system is currently active. This property is a boolean value, where true means the fog system is enabled, and false means it is disabled.

Usage

To use the Enabled property, you can simply get or set its value to control the activation state of the fog system. For example, you might want to enable the fog system at the start of a scene or disable it under certain conditions.

Example

// Example of enabling the fog system
VolumetricFogParameters fogParams = new VolumetricFogParameters();
fogParams.Enabled = true;

// Check if the fog system is enabled
if (fogParams.Enabled)
{
    // Perform actions when fog is enabled
}