Set up a sky
To choose the scene to edit, use the project settings gear → Change scene. Right-click a scene and choose Set as start scene to open it automatically the next time you open the project and to start gameplay there after the optional loading screen. To configure startup loading, see the scene lifecycle guide. Without a saved choice, the editor opens main.scene, then legacy main.rscene, then the top scene in the sorted list, including subfolders. Projects with no scene files open an editable empty Main scene; saving creates main.scene. If a saved start scene is missing, restore that file or remove the optional start_scene field in project.engine to restore automatic selection.
If the project opens read-only because another editor has it open, close that editor and reopen the project. A crashed editor releases its writer lock automatically; leftover lock metadata does not prevent editing. Switching scenes retains the project writer lock. If a scene becomes read-only, check Console entries under scene.load: they now show the file path and the validation reason. A valid external text edit may leave a stale checksum; the editor warns about that mismatch but keeps the edited primary scene writable. Save to refresh its checksum; the prior file is retained as .bak. A valid scene with a stale checksum is now marked as needing a save even when you have made no local edits. Autosave repairs it when enabled; starting Play, New Window, or Standalone also saves the pending repair before launching, including when autosave is off. A successful save clears the resolved load diagnostic and keeps the externally edited file as .bak. If saving fails, the editor reports the write failure and keeps the repair pending; fix the destination or permissions and try again. Read-only projects do not rewrite the source scene; their play snapshots still receive a fresh checksum. Invalid components/environment settings and unsupported future formats are not repaired this way. Invalid components/environment settings and newer unsupported formats still require recovery or read-only access.
- Copy a 2:1 equirectangular panorama into your project, for example
assets/sky/sunset.hdr. Supported formats are Radiance HDR (.hdr), PNG, JPEG and TGA. A 4096 × 2048 image is a typical choice; each dimension must be at most 8192 pixels. Six separate cubemap faces, EXR and model files are not supported. - Select Environment in Scene Explorer and turn on Enable custom environment in Properties.
- Select Sky under Environment, then click Choose image… under Sky image (day). Select a file inside the project folder. The scene stores its project-relative path. Keep the file at that path when moving the project.
- Adjust Sky rotation to turn the panorama and Sky exposure (stops) to brighten or darken it. HDR images use simple Reinhard tone mapping after exposure, then sRGB display encoding. PNG, JPEG and TGA colors are decoded before filtering and exposure, then encoded for display; at zero exposure their image colors are preserved. With no image selected, Sky color supplies a solid background. Select Use daylight sky without an image to use daylight with custom lighting and haze.
- Save the scene. Undo and redo work for environment changes. The image is included in the immutable snapshot when starting Play, including unsaved environment changes.
The panorama surrounds the camera at infinity: rotating the camera changes the view of the sky; moving it does not move the sky closer. Clear image switches to the selected solid or daylight background. Reset environment restores the built-in 3D sky and removes the Clouds entry. Turning off the custom environment restores the built-in sky and default object lighting. Use Show sky to hide the sky and clouds.
Add volumetric clouds
- In Scene Explorer, choose + Add → Clouds. The editor adds and selects Clouds under Environment with the cloud layer enabled.
- Keep Show sky enabled in Sky properties. Look slightly above the horizon. A cloud layer appears over the daylight sky, the solid color, or your panorama. Clouds work with the built-in sky without enabling the custom environment.
- Start with Coverage for the amount of sky filled and Density for opacity. Base altitude sets the bottom of the layer on the world Y axis, Thickness sets its depth, and Cloud size sets the size of its features. The last three controls use world units.
- Save the scene. Turn off Enable clouds in Clouds properties to hide the layer while keeping the entry and its settings. Undo and redo apply to adding Clouds and editing its settings. Start Play with an active camera to see the same settings in game.
For a scripted weather change, attach a Lua script as a Scene Startup Script or as an object component, then start Play.
return {
Start = function()
Game.scene.setEnvironment({
clouds_enabled = true,
cloud_coverage = 0.65,
cloud_density = 1.2
})
end
}Use Game.scene.getEnvironment() to read the live settings. To make the sky clear during a later callback, call Game.scene.setEnvironment({clouds_enabled = false}). Runtime changes last for the play session. Save changes from the Inspector if you want them to persist.
The renderer samples a world-space cloud volume with regional coverage, eroded edges, and sunlight filtered through the layer. Add scene wind to move the layer during Play. Configure scene wind Moving the camera changes the view through the volume. Scene geometry renders in front of the layer, and the clouds cast no shadows on objects. If you cannot see them, check Show sky, Enable clouds, and that both coverage and density are above zero. Aim toward the altitude of the layer or choose Reset environment, then add Clouds again.
Set up a day/night cycle
- Select Environment in Scene Explorer. In Properties, expand Time Settings and turn on Enable day/night cycle. This also enables the custom environment.
- Select Sky under Environment. Assign your noon panorama under Sky image (day) and choose panoramas for Night sky (00:00), Sunrise sky (06:00) and Sunset sky (18:00). Each slot accepts a 2:1 HDR, PNG, JPEG or TGA panorama. Keep the panoramas in your project's
assetsfolder so they're available when switching scenes during Play and in exported builds. - Return to Environment → Time Settings and drag Start hour to preview any point in the cycle in the 3D viewport. Set Full day duration to the number of gameplay seconds in 24 in-game hours. For a quick check, start at 18 and set a duration of 24 seconds. The sunset sky reaches the night sky after six seconds.
- In Sky properties, adjust Sky turns per day for the panorama's motion. The default is one full turn per day. Zero holds the panorama orientation and negative values reverse the direction. Use Sky rotation to align all panoramas together.
- Save and start Play. The sky fades between the four panoramas and wraps at midnight. Pausing native Play freezes the cycle. Starting a new session uses the saved start hour.
Clear any phase image to use its solid fallback color. For the day slot, Use daylight sky without an image selects the built-in daylight sky. Otherwise the day slot uses Sky color. The cycle also moves the scene sun and dims ambient light to 20% of its daytime value at night. Sun intensity sets the peak at noon. The horizontal X/Z components of Direction towards sun set the sunrise direction. A vertical direction uses +X for sunrise.