Description
The SkyColor
property of the DirectionalLight
class represents the color of the ambient sky. This property is maintained for long-term support, but it is recommended to use an Ambient Light
component for setting the ambient sky color in new implementations.
Usage
To use the SkyColor
property, you can get or set its value to change the ambient sky color associated with a DirectionalLight
instance. This property is of type Color
, which allows you to specify the color using RGBA values.
Example
// Example of setting the SkyColor property
DirectionalLight directionalLight = new DirectionalLight();
directionalLight.SkyColor = new Color(0.5f, 0.7f, 1.0f, 1.0f); // Set to a light blue color