Sky and time
Time of day
Keep a UTC calendar clock that drives the sun, sky and weather.
Add Cloud Time Of Day to a GameObject to maintain a UTC calendar clock. The date and time fields use UTC and edits update the clock. Subsecond precision is preserved across disable and enable and unrelated Inspector edits; changing the calendar fields resets it. Seconds Per Second controls simulated seconds per real second; zero pauses and a negative value runs backward. SetUtcTime sets the calendar directly and Advance accepts a nonnegative real-time interval. An invalid interval, non-finite speed, or a step beyond the supported calendar range returns false without changing the clock. DateTime input is interpreted as UTC without a local-time conversion.
Set latitude north positive and longitude east positive in degrees. SunDirection gives the approximate geometric direction from the observer to the sun in world coordinates: east is +X, up is +Y, and north is +Z. It uses a solar declination and equation-of-time approximation; atmospheric refraction, terrain, longitude-based time zones, moon and eclipses are not modeled.
To control cloud illumination, assign a directional light to both Cloud Layer and Cloud Time Of Day, then enable Control Light. Light control operates only in play mode. The controller rotates only that light; it does not change light intensity, color, enabled state, sky, fog, ambient lighting or project settings. It advances automatically during play; the static CalculateSunDirection API can be used without a component. To prevent another script and this controller from fighting over a light, an external rotation change releases control until the component is re-enabled or RestoreLight is called. Disabling, destroying, changing the assigned light or calling RestoreLight restores the original rotation only if the controller's last rotation is still present. Do not assign multiple controllers to the same light.
The controller does not provide a sky renderer, moon, stars, precipitation, daylight-saving rules or a weather simulation. Coordinate clock and weather transitions through their independent public APIs if needed.
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.