bool Enabled { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Enabled property of the GradientFogController struct indicates whether the fog effect is currently active. This boolean property can be set to true to enable the fog or false to disable it.

Usage

To use the Enabled property, you need to have an instance of GradientFogController. You can then get or set the Enabled property to control the visibility of the fog effect in your scene.

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