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.
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.
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 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 }