Skip to content

Day Sky

Updated

Physically scattered daytime sky with time of day and clouds.

Type
comp-day-sky
Script class
DaySkyComponent
Per entity
One
Version
2.1.0

Read about it in Environment and sky: what it does, how to use it from a script, and examples.

The props the runtime declares for this component, with their defaults and accepted ranges.

Prop Default Range
cloudAltitude -100000 ≤ x ≤ 100000
cloudDensity 0 ≤ x ≤ 8
cloudOpacity 0 ≤ x ≤ 1
cloudPreset "partlyCloudy"
cloudSeed
cloudWind -1000 ≤ x ≤ 1000
exposure 0 ≤ x ≤ 100
horizonBlend 0 ≤ x ≤ 1
mieCoefficient 0 ≤ x ≤ 1
mieDirectionalG 0 ≤ x ≤ 1
preset "clearNoon"
rayleigh 0 ≤ x ≤ 64
sunIntensity 0 ≤ x ≤ 1000
time 0 ≤ x ≤ 1

Run it in the browser, read its scripts, and download it as an XR Creator project.

#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(DaySkyComponent);
if (component) log(component.props);
}