Skip to main content

setSkyManualModeEnabled

Sets whether the sky transitions are manual or automatic according to the time of day.

NOTE

Enabling manual mode for the sky disables automatic transitions, such as night and day cycles, sunrises, and sunsets. When in manual mode, you have full control over the sky's appearance and lighting, but you will need to manually apply any changes or transitions.

Syntax

engine.world.setSkyManualModeEnabled(status);

Parameters

NameTypeDescription
statusbooleanWhether to enable or disable the manual mode of the sky.

Example

engine.world.setSkyManualModeEnabled(true);

engine.world.setGlobalLightColor('white');
engine.world.setGlobalLightIntensity(0.5);

engine.world.setHemisphereLightColor('blue');
engine.world.setHemisphereLightGroundColor('red');
engine.world.setHemisphereLightIntensity(1);

Available on: Client