Weather API
ChangeWeatherWithTransition
Changes UniStorm's weather, regardless of conditions, with the transition speed to the weather type parameter.
UniStorm.UniStormManager.Instance.ChangeWeatherWithTransition(UniStorm.WeatherType weatherType);ChangeWeatherInstantly
Changes UniStorm's weather instantly, regardless of conditions, to the weather type parameter.
UniStorm.UniStormManager.Instance.ChangeWeatherInstantly(WeatherType weatherType);RandomWeather
Generates a random weather type, regardless of conditions, from UniStorm's All Weather Type list
UniStorm.UniStormManager.Instance.RandomWeather();CurrentWeatherType
Get the name of the current weather type
string CurrentWeatherTypeName = UniStorm.UniStormSystem.Instance.CurrentWeatherType.WeatherTypeName;GetWeatherForecastName
Gets the forecasted weather type's name
string WeatherForecastName = UniStorm.UniStormManager.Instance.GetWeatherForecastName();GetWeatherForecastHour
Gets the hour that the forecasted weather will change
int WeatherForecastHour = UniStorm.UniStormManager.Instance.GetWeatherForecastHour();ChangeWeatherEffectsState
Disables or enables all UniStorm particle effects depending on the ActiveState bool, but does not affect their emission amount.
UniStorm.UniStormManager.Instance.ChangeWeatherEffectsState(bool ActiveState);ChangeWeatherSoundsState
Disables or enables all UniStorm weather sounds depending on the ActiveState bool, but does not affect their current volume.
UniStorm.UniStormManager.Instance.ChangeWeatherSoundsState(bool ActiveState);Temperature
Get the current UniStorm temperature
int CurrentTemperature = UniStorm.UniStormSystem.Instance.Temperature;CurrentSeason
Get the current season
UniStorm.UniStormSystem.CurrentSeasonEnum currentSeason = UniStorm.UniStormSystem.Instance.CurrentSeason;ChangeMoonPhaseColor
Changes UniStorm's moon phase color. The updated color will be applied at noon when UniStorm's moon is updated.
UniStorm.UniStormManager.Instance.ChangeMoonPhaseColor(Color MoonPhaseColor)Last updated