Sky Foundry
C# integration
using Foundry.Sky;
using UnityEngine;
public sealed class WorkshopSky : MonoBehaviour
{
[SerializeField] SkyController sky;
public void SetAfternoon() => sky.SetHour(15f);
public void MakeCloudy() => sky.SetWeather(SkyWeatherLook.Cloudy, 8f);
public void UseProfileWeather() => sky.ClearWeatherOverride();
public string CaptureSky() => JsonUtility.ToJson(sky.CaptureState());
public bool RestoreSky(string json) =>
sky.RestoreState(JsonUtility.FromJson<SkyState>(json));
}SetHour changes time silently. AdvanceHours advances forward and raises crossed-boundary notifications; SynchronizeTime(day, hour, notifyEvents) sets a specific clock/date. C# events include Dawn, Noon, Dusk, Midnight, TimeChanged and WeatherTransitionCompleted; the controller also exposes Inspector UnityEvents. Boundary counts describe how many boundaries were crossed, including skipped days. Observers receive the already-applied final sky.
SetWeather overrides cloud coverage, opacity, high clouds, wind speed and direction without modifying the profile. ClearWeatherOverride returns immediately to the profile. CaptureState/RestoreState provide a versioned JSON-compatible clock/weather/wind payload. They do not save the scene, profile, light reference or your game; persist those separately. RestoreState returns false for unsupported/corrupt payloads.
Stars, Milky Way, moon phases and shooting stars are procedural. TriggerShootingStar(direction) requests a single meteor when the profile enables them; automatic opportunities and night visibility are profile controlled.