bool Enabled { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Enabled property of the VolumetricFogParameters class indicates whether the fog system is currently active. This boolean property allows you to enable or disable the volumetric fog effect within the scene.

Usage

To use the Enabled property, you need to have an instance of the VolumetricFogParameters class. You can then set this property to true to enable the fog or false to disable it.

Example

// Example of enabling the volumetric fog
VolumetricFogParameters fogParameters = new VolumetricFogParameters();
fogParameters.Enabled = true; // Enable the fog

// Example of disabling the volumetric fog
fogParameters.Enabled = false; // Disable the fog