Cloudscape Docs
View all packages

Weather

Weather systems

Use the Weather Library sample and connect Cloudscape to your weather logic.

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

Weather Library sample

Import Weather Library for 46 profiles from Clear Sky to Supercell, a temperate climate, a seasonal weather calendar, and original rain, wind and thunder sounds. See the sample README.

Precipitation

Add Cloud Precipitation to a GameObject with a Particle System and pick Drizzle, Rain, Heavy Rain, Snow, Sleet or Hail. It configures the particles around its object with the included Cloudscape/Precipitation shader; your own material is kept if one is assigned. Add Cloud Precipitation Follow to keep the emitter above the player, and assign the Particle System to Cloud Weather Effects to fade it with the weather.

Wet and snowy surfaces

Cloud Surface Weather builds up wetness while it rains and snow below Snow Temperature, then dries and melts over time. It publishes _CloudscapeWetness and _CloudscapeSnow to all shaders. Include Packages/net.kiwistudios.clouds/Runtime/Shaders/CloudscapeSurfaceWeather.hlsl in your shaders, or call CloudscapeSurfaceWeather from a Shader Graph Custom Function node, to darken and gloss wet surfaces and cover upward-facing ones with snow.

Climate and seasons

A Cloud Climate asset holds monthly mean temperatures and a daily range. Temperature(utc, latitude, longitude) and SeasonFor(utc, latitude) give the temperature and season; the southern hemisphere is offset by six months. Assign a climate and latitude to a Cloud Weather Calendar and give entries Minimum/Maximum Temperature, so storms only occur on warm days and snowy overcast only below freezing.

Same weather for every player

Cloud Weather Sync applies the calendar forecast for a shared clock. Set SharedSeconds to your network's server time; every client then shows the same weather and starts lightning storms with the same seed (StormSeed) without sending any weather state. Epoch UTC and Time Scale map the shared seconds to the calendar. It drives a Cloud Weather Controller, Cloud Weather Effects and Cloud Lightning, and raises WeatherChanged.

Save and load

CloudWeatherSave.Capture(clock, layer, effects, lightning, stormSeed) records the time, the current weather (by name and full settings), effects and storm state. ToJson/FromJson turn it into text for your save game, and Restore applies it, preferring a profile with the saved name from your list. CloudProfileJson.Export/Import exchange profile settings at runtime; texture references stay on the receiving profile.

Live weather

Cloud Live Weather reads current conditions for a latitude and longitude from a weather service and applies them to a copy of a base profile through a Cloud Weather Controller: cloud cover sets coverage, precipitation sets rain shafts, wind sets drift. Nothing is fetched unless you call Fetch or enable Fetch Automatically. The default address uses Open-Meteo, which needs no key; check the service's terms for your use. TryParse and Apply are public for other services.

Events for visual scripting

Cloud Events re-raises lightning strikes (cloud and ground positions), shared weather changes, entering and leaving cloud, and sun visibility as UnityEvents, so Unity Visual Scripting, PlayMaker, Game Creator and other event-driven tools can react without code. All components also expose public properties and events for those tools.

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