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