Description
The Tint
property of the SkyBox2D
class allows you to specify a color tint for the 2D skybox. This property is useful for adjusting the overall color tone of the skybox, enabling you to create different atmospheric effects by applying a color overlay.
Usage
To use the Tint
property, simply set it to a Color
value that represents the desired tint color. This can be done in the initialization of your scene or dynamically during runtime to change the appearance of the skybox.
Example
// Example of setting the Tint property for a SkyBox2D component
// Assuming you have a SkyBox2D component instance
SkyBox2D skybox = new SkyBox2D();
// Set the tint to a light blue color
skybox.Tint = new Color(0.5f, 0.7f, 1.0f, 1.0f); // RGBA values