Weather Volumes
The Time Of Day component sets the weather for the whole world. A Weather Volume component (plWeatherVolumeComponent, category Effects) changes it in one place:
- Weather Override mode blends a Weather Profile asset over the world's weather while the camera is inside the volume: a blizzard on a mountain top, mist in a valley, heavier rain over a harbour.
- Shelter mode marks an interior, cave, overhang or glass canopy. Rain and snow are culled inside, and the volume is stamped into the GPU precipitation occlusion map, so the space stays dry even when the roof is thin or has open gaps.
Setting up
- Create a game object and add a Weather Volume component.
- Choose
ModeandShape, and size the volume withExtents(box) orRadius(sphere). The object's scale also scales the volume. - For Weather Override: create a Weather Profile asset in the Asset Browser with New > Weather Profile, set its values, and assign it to
WeatherProfile. - For Shelter: fit the box around the interior. Raise
ShelterCeilingOffsetif the stamped ceiling should sit above the volume's top.
Component properties
| Property | Default | Description |
|---|---|---|
Mode | Weather Override | Weather Override blends the profile in; Shelter keeps precipitation out. |
Shape | Box | Box or Sphere. |
Extents | 10 × 10 × 6 m | Size of the box. |
Radius | 8 m | Radius of the sphere. |
BlendDistance | 3 m | Distance outside the shape over which the effect fades out smoothly. 0 is a hard edge. |
Priority | 0 | Where overrides overlap, higher priorities are applied last, on top of lower ones. |
Weight | 1 | Strength of the volume, 0 to 1. |
WeatherProfile | none | The Weather Profile asset to blend in (Weather Override mode). |
ShelterCeilingOffset | 0 m | Added to the top of the volume where it is stamped into the precipitation occlusion map (Shelter mode). |
Weather Profile asset
A Weather Profile (.plWeatherProfileAsset, category Effects) is a set of weather values in six groups:
| Group | What it sets |
|---|---|
| Rain | Intensity, particle density, fall speed, drop size, streak length, tint, wind influence, splashes and mist. |
| Snow | Intensity, particle density, fall speed, flake size, flutter strength and frequency, tint, wind influence and spindrift. |
| Surface Wetness | Wetness, albedo darkening, wet and puddle roughness, slope power, puddle threshold, ripple strength and scale, breakup scale and strength. |
| Surface Snow | Accumulation, slope threshold, sparkle, tiling, breakup, roughness, albedo and the drip width under shelter. |
| Camera Lens | Lens rain intensity, splash scale and distortion. |
| Atmosphere | Cloud coverage multiplier and bias, precipitation multiplier and a fog boost for low visibility. |
The Profile group lets one profile inherit from another: set BaseProfile, and switch on only the groups this profile replaces (OverrideRain, OverrideSnow, OverrideSurfaceWetness, OverrideSurfaceSnow, OverrideLens, OverrideAtmosphere). Without a BaseProfile the switches are ignored and every group applies.
Weather profiles only drive Weather Volumes (and old scenes that still use the deprecated Weather component, see Migrating from the Weather component). The world's own weather comes from the Environment's timeline and overrides.
Troubleshooting
| Problem | Cause and fix |
|---|---|
| The override has no effect | The volume is evaluated at the camera: move the camera inside it. Check Weight and that WeatherProfile is set. |
| It still rains inside a shelter | The volume does not cover the whole interior, or its top is below the roof. Enlarge it or raise ShelterCeilingOffset. |
| Overlapping volumes give the wrong weather | Set Priority so the volume that should win has the higher value. |