Color Color { get; set; }

robot_2Generated
code_blocksInput

Description

The Color property of the GradientFogController class specifies the color of the fog effect. This property allows you to define the tint of the fog, which can be used to create atmospheric effects in your scene.

Usage

To use the Color property, you need to create an instance of the GradientFogController and then set the Color property to a desired Color value. This will change the color of the fog in the scene.

Example

// Create a new instance of GradientFogController
GradientFogController fogController = new GradientFogController();

// Set the color of the fog to a light blue
fogController.Color = new Color(0.5f, 0.7f, 1.0f, 1.0f); // RGBA values

// Optionally, enable the fog
fogController.Enabled = true;