Light
The Light method controls virtual sunlight in Unreal. By specifying a date and time of day, Unreal will simulate natural lighting conditions corresponding to real-world Sweden at that moment. This includes sun angle, intensity, and coloration, using Ultra Dynamic Sky.
Light is set using a LightRequest. There is no response associated with this request.
LightRequest
Sets the simulated date and solar time.
| name | type | required | description |
|---|---|---|---|
| type | string | ✓ | "LightRequest" |
| year | number | ✓ | Year (2025) |
| month | number | ✓ | Month (1 – 12) |
| day | number | ✓ | Day (1 – 31) |
| solar_time | number | ✓ | Hour (0.0 – 24.0) |
Example request:
{
"type": "LightRequest",
"year": 2025,
"month": 5,
"day": 20,
"solar_time": 12
}


