Color LightColor { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The LightColor property of the SceneLight class represents the color and brightness of the light source within a scene. This property is crucial for defining the visual appearance and mood of the scene by adjusting the light's hue and intensity.

Usage

To use the LightColor property, you can get or set its value using a Color object. This allows you to dynamically change the light's color and brightness during runtime, which can be useful for creating effects such as day-night cycles or mood lighting.

Example

// Example of setting the LightColor property
SceneLight myLight = new SceneLight();
myLight.LightColor = new Color(1.0f, 0.5f, 0.5f); // Sets the light to a soft pink color

// Example of getting the LightColor property
Color currentColor = myLight.LightColor;
// Use currentColor to perform further operations or logic