Weather
Sky and weather integration
Follow your own sky, time-of-day and weather systems without Cloudscape taking over the scene.
Cloudscape works on its own, and can optionally follow your sky, time-of-day and weather systems. None of these are required, and Cloudscape never changes scene lights, sky materials or project settings by itself.
Sky state
A Cloud Layer lights its clouds from, in order:
- Its Sky provider, when one is assigned and reports a state.
- Otherwise its Sun light, or the scene sun from Lighting settings.
- Otherwise a fixed default direction with white light.
A sky provider is any component that implements ICloudSkyProvider:
public sealed class MySkyBridge : MonoBehaviour, ICloudSkyProvider
{
public bool TryGetSkyState(out CloudSkyState state)
{
state = new CloudSkyState(directionToSun, sunColor, sunIntensity, ambientTint);
return true;
}
}DirectionToSun points from the clouds toward the sun. SunColor and SunIntensity (0–1) scale the profile's sun tint, and AmbientTint multiplies the profile's ambient tint. Return false to fall back to the Sun light for that frame. Changing the reported state restarts cloud history, so report smooth changes rather than per-frame noise.
Cloud Time Of Day is a sky provider. Assign it to a layer's Sky provider field to light clouds from its date, time, latitude and longitude, with warmer, dimmer light near the horizon and a darker ambient at night, without letting it rotate the scene light. Its separate Control light option still rotates an assigned directional light in Play mode if you want that too. Ground shadows and directional cookies keep using the Sun light.
Deterministic time and weather
Cloud Time Of Day uses an explicit UTC date and time; SetUtcTime and Advance give repeatable results. The Weather Calendar picks profiles from its Seed and slot length, so the same seed and time always give the same forecast. Cloud Weather Controller transitions blend profiles over a set duration. Timeline tracks for time and weather evaluate and scrub these components in Edit mode; see Timeline.
Precipitation hooks
Cloud Weather Effects scales an assigned Particle System, Audio Source and Wind Zone. External precipitation, wetness or audio systems can follow the same transitions:
TransitionStarted(targetIntensity, duration)is raised whenTransitionTostarts a fade.IntensityChanged(intensity)is raised whenever the effective intensity changes during play.
The forecast notifier raises ForecastChanged with the profile and effects intensity for each new forecast slot. These are plain C# events; Cloudscape does not depend on any external weather package.
Still stuck?
Bring the sky with you.
Include the Cloudscape version, Unity and render-pipeline versions, operating system, graphics API, the Cloud Layer's camera setup inspection, relevant logs, and a minimal reproduction.