Cloudscape Docs
View all packages

Weather

Weather calendar

Schedule seeded, weighted weather by month and time slot.

Cloudscape 26.11.0Unity 6000.0+Built-in · URP · HDRP

Create a Cloudscape > Weather Calendar asset and configure a seed, a slot length in minutes and weighted entries. Each entry can reference a cloud profile and an effects intensity, with an inclusive first and last month. A month range such as November through February wraps across the new year. The selected entry is stable for the same asset settings, seed and UTC slot, regardless of query order. The slot starts are anchored to the start of the Gregorian calendar, not to the time the game starts. The month eligibility is evaluated at the start of each slot.

Call TryGetForecast(time, out forecast) to query any date. The supplied DateTime fields are interpreted as UTC without local-time conversion. The result contains the selected entry index, profile, effects intensity, slot number, and UTC start and end. Slots are half-open, except the final representable slot ends at DateTime.MaxValue. A missing profile is allowed for an effects-only entry. The query returns false for an invalid slot length, no entries or no eligible entries. Entries with nonpositive or non-finite weights, invalid intensities or invalid month ranges are skipped.

The calendar does not mutate scenes or advance a clock. A game can query CloudTimeOfDay.UtcTime, detect a changed Slot, and explicitly call CloudWeatherController.TransitionTo(forecast.Profile, seconds) when a profile is assigned and CloudWeatherEffects.TransitionTo(forecast.EffectsIntensity, seconds) when effects are assigned. Check each return value and choose a retry or fallback appropriate to the game; the calls are independent and are not an atomic transaction. Changing the seed, slot length, weights, month ranges or entry order changes the schedule, so persist those settings alongside a saved game if exact replay is needed.

This is a deterministic authored schedule, not a physical weather simulation or a prediction of real conditions. It does not produce precipitation, synchronize network peers or send change events; callers control when to query and apply results.

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.

Email supportJoin Discord

Cloudscape 26.11.0

Search documentation