Description
The StartHeight
property of the GradientFogController
class specifies the height at which the fog effect begins. This property is a float
value representing the vertical position in the scene where the fog starts to appear. Adjusting this value allows you to control the vertical range of the fog effect, which can be useful for creating atmospheric effects in your game environment.
Usage
To use the StartHeight
property, you need to have an instance of the GradientFogController
class. You can then set or get the StartHeight
value to control where the fog effect begins in terms of height.
Example usage:
GradientFogController fogController = new GradientFogController();
fogController.StartHeight = 10.0f; // Set the fog to start at a height of 10 units
float currentStartHeight = fogController.StartHeight; // Retrieve the current start height of the fog
Example
GradientFogController fogController = new GradientFogController();
fogController.StartHeight = 10.0f; // Set the fog to start at a height of 10 units
float currentStartHeight = fogController.StartHeight; // Retrieve the current start height of the fog