void SetSkyLighting( Vector3 ConstantSkyLight )

book_4_sparkGenerated
code_blocksInput

Description

The SetSkyLighting method is part of the SceneSkyBox class in the Sandbox namespace. This method is used to set the sky lighting for the skybox using a constant light vector. However, it is marked as obsolete, indicating that it may be removed in future versions and should be avoided in new code.

Usage

To use the SetSkyLighting method, you need to have an instance of the SceneSkyBox class. You can then call this method with a Vector3 parameter representing the constant sky light direction.

Note: Since this method is marked as obsolete, consider looking for alternative methods or properties to achieve similar functionality.

Example

// Example of using SetSkyLighting method
SceneSkyBox skyBox = new SceneSkyBox();
Vector3 lightDirection = new Vector3(1.0f, 0.5f, 0.0f);

// This method is obsolete, use with caution
skyBox.SetSkyLighting(lightDirection);