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
Name | Description |
---|---|
MLWeatherData .CloudCoverage | Cloud coverage percentile. |
MLWeatherData .FeelsLike | Feels like temperature in Celsius. |
MLWeatherData .Humidity | Current humidity percentage. |
MLWeatherData .MaxTemperature | The maximum temperature read. In some locations the temperature data is collected from multiple stations. This value indicates the maximum of those readouts. |
MLWeatherData .MinTemperature | The minimum temperature read. In some locations the temperature data is collected from multiple stations. This value indicates the minimum of those readouts. |
MLWeatherData .OnWeatherDataUpdate | Event handler called when the new weather data gets fetched. |
MLWeatherData .Pressure | Current pressure in Hectopascal (hPa) |
MLWeatherData .RainVolumeInLastHour | The amount of rain in the last hour. It measures rainfall depth in mm. |
MLWeatherData .SnowVolumeInLastHour | The amount of snow in the last hour. It measures the snowfall depth in mm. |
MLWeatherData .Temperature | The current temperature in Celsius. |
MLWeatherData .Visibility | The current visibility in meters. Maximum is 10000 meters. |
MLWeatherData .WindBearing | The current wind direction angle from north in degrees. (meteorological) |
MLWeatherData .WindGust | Wind gust. |
MLWeatherData .WindSpeed | The current wind speed in meter per second (m/s) |
Inherited Members
Inherited Properties
Name | Description |
---|---|
MLWeatherData .gameObject | The game object this component is attached to. A component is always attached to a game object. |
MLWeatherData .tag | The tag of this game object. |
MLWeatherData .transform | The Transform attached to this GameObject. |
MLWeatherData .hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
MLWeatherData .name | The name of the object. |
Inherited Methods
Name | Description |
---|---|
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. |