The LightColor
property represents the main color of the light in the Sandbox.Light
component. This property allows you to set or retrieve the color that the light emits, which can affect the appearance and mood of the scene.
The LightColor
property represents the main color of the light in the Sandbox.Light
component. This property allows you to set or retrieve the color that the light emits, which can affect the appearance and mood of the scene.
To use the LightColor
property, you need to have an instance of the Light
component. You can then set the LightColor
to a desired Color
value to change the light's color.
// Example of setting the LightColor property Light myLight = new Light(); myLight.LightColor = new Color(1.0f, 0.5f, 0.5f); // Sets the light color to a soft pink // Example of getting the LightColor property Color currentColor = myLight.LightColor; // Use currentColor as needed