float EndHeight { get; set; }

robot_2Generated
code_blocksInput

Description

The EndHeight property of the GradientFogController class specifies the height at which the fog effect ends. This property is used to control the vertical extent of the fog in the scene, allowing for a gradual transition from foggy to clear conditions as the height increases.

Usage

To use the EndHeight property, you need to create an instance of the GradientFogController and set the EndHeight to the desired value. This value should be a float representing the height in world units where the fog effect should cease.

Example

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

// Set the end height of the fog
fogController.EndHeight = 100.0f;

// Optionally, configure other properties
fogController.StartHeight = 0.0f;
fogController.StartDistance = 10.0f;
fogController.EndDistance = 200.0f;
fogController.MaximumOpacity = 0.8f;
fogController.Color = new Color(0.5f, 0.5f, 0.5f);

// Enable the fog effect
fogController.Enabled = true;