Skip to main content

MLWeatherData

info

MLWeatherData inherits from Component

Api interface for MLWeatherData component. MLWeatherData component fetches the weather for specified location. You can access the latest fetch results through this API. You can also register event handler to be called when the new weather fetch occurs.

Members

Properties

NameDescription
MLWeatherData.CloudCoverageCloud coverage percentile.
MLWeatherData.FeelsLikeFeels like temperature in Celsius.
MLWeatherData.HumidityCurrent humidity percentage.
MLWeatherData.MaxTemperatureThe maximum temperature read. In some locations the temperature data is collected from multiple stations. This value indicates the maximum of those readouts.
MLWeatherData.MinTemperatureThe minimum temperature read. In some locations the temperature data is collected from multiple stations. This value indicates the minimum of those readouts.
MLWeatherData.OnWeatherDataUpdateEvent handler called when the new weather data gets fetched.
MLWeatherData.PressureCurrent pressure in Hectopascal (hPa)
MLWeatherData.RainVolumeInLastHourThe amount of rain in the last hour. It measures rainfall depth in mm.
MLWeatherData.SnowVolumeInLastHourThe amount of snow in the last hour. It measures the snowfall depth in mm.
MLWeatherData.TemperatureThe current temperature in Celsius.
MLWeatherData.VisibilityThe current visibility in meters. Maximum is 10000 meters.
MLWeatherData.WindBearingThe current wind direction angle from north in degrees. (meteorological)
MLWeatherData.WindGustWind gust.
MLWeatherData.WindSpeedThe current wind speed in meter per second (m/s)

Inherited Members

Inherited Properties

NameDescription
MLWeatherData.gameObjectThe game object this component is attached to. A component is always attached to a game object.
MLWeatherData.tagThe tag of this game object.
MLWeatherData.transformThe Transform attached to this GameObject.
MLWeatherData.hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
MLWeatherData.nameThe name of the object.

Inherited Methods

NameDescription
MLWeatherData.BroadcastMessage(methodName, parameter=nil)Calls the method named methodName on every Lua Script in this game object or any of its children.
MLWeatherData.CompareTag(tag)Is this game object tagged with tag ?
MLWeatherData.GetAllLuaScripts()Returns an array of all Lua scripts that attached to the game object.
MLWeatherData.GetComponent(type)Returns the component of Type type if the game object has one attached, nil if it doesn't.
MLWeatherData.GetComponentInChildren(t)Returns the component of Type type in the GameObject or any of its children using depth first search.
MLWeatherData.GetComponentInParent(t)Returns the component of Type type in the GameObject or any of its parents.
MLWeatherData.GetComponents(type)Returns all components of Type type in the GameObject.
MLWeatherData.GetComponentsInChildren(t)Returns all components of Type type in the GameObject or any of its children.
MLWeatherData.GetComponentsInParent(t)Returns all components of Type type in the GameObject or any of its parents.
MLWeatherData.SendMessage(methodName, value=nil)Calls the method named methodName on every Lua Script in this game object.
MLWeatherData.SendMessageUpwards(methodName, value=nil)Calls the method named methodName on every LuaScript in this game object and on every ancestor of the behaviour.
MLWeatherData.TryGetComponent(type)Gets the component of the specified type, if it exists.
MLWeatherData.GetInstanceID()Returns the instance id of the object.