Description
The Enabled
property of the CubemapFogController
class indicates whether the cubemap fog effect is currently active. When set to true
, the fog effect is applied based on the other properties of the CubemapFogController
. When set to false
, the fog effect is disabled.
Usage
To use the Enabled
property, you can simply get or set its value to control the activation of the cubemap fog effect. This property is useful for toggling the fog effect on or off during runtime based on game conditions or player actions.
Example
// Example of enabling the cubemap fog
CubemapFogController fogController = new CubemapFogController();
fogController.Enabled = true; // Activates the fog effect
// Example of disabling the cubemap fog
fogController.Enabled = false; // Deactivates the fog effect