Skip to content

API > MLWeatherData


MLWeatherData⚓︎

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⚓︎

Name Description
MLWeatherData.CloudCoveragePropertyReadonly Property Cloud coverage percentile.
MLWeatherData.FeelsLikePropertyReadonly Property Feels like temperature in Celsius.
MLWeatherData.HumidityPropertyReadonly Property Current humidity percentage.
MLWeatherData.MaxTemperaturePropertyReadonly Property The maximum temperature read. In some locations the temperature data is collected from multiple stations. This value indicates the maximum of those readouts.
MLWeatherData.MinTemperaturePropertyReadonly Property The minimum temperature read. In some locations the temperature data is collected from multiple stations. This value indicates the minimum of those readouts.
MLWeatherData.OnWeatherDataUpdatePropertyReadonly Property Event handler called when the new weather data gets fetched.
MLWeatherData.PressurePropertyReadonly Property Current pressure in Hectopascal (hPa)
MLWeatherData.RainVolumeInLastHourPropertyReadonly Property The amount of rain in the last hour. It measures rainfall depth in mm.
MLWeatherData.SnowVolumeInLastHourPropertyReadonly Property The amount of snow in the last hour. It measures the snowfall depth in mm.
MLWeatherData.TemperaturePropertyReadonly Property The current temperature in Celsius.
MLWeatherData.VisibilityPropertyReadonly Property The current visibility in meters. Maximum is 10000 meters.
MLWeatherData.WindBearingPropertyReadonly Property The current wind direction angle from north in degrees. (meteorological)
MLWeatherData.WindGustPropertyReadonly Property Wind gust.
MLWeatherData.WindSpeedPropertyReadonly Property The current wind speed in meter per second (m/s)

Inherited Members⚓︎

Inherited Properties⚓︎

Name Description
MLWeatherData.gameObjectPropertyReadonly Property The game object this component is attached to. A component is always attached to a game object.
MLWeatherData.tagPropertyReadonly Property The tag of this game object.
MLWeatherData.transformPropertyReadonly Property The Transform attached to this GameObject.
MLWeatherData.hideFlagsProperty Should the object be hidden, saved with the Scene or modifiable by the user?
MLWeatherData.nameProperty The name of the object.

Inherited Methods⚓︎

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