MLCelestialData
7/14/25Less than 1 minute
namespace ML.SDK
Class
MLCelestialData
namespace ML.SDK
{
class MLCelestialData
}Inherits from MonoBehaviour ML.SDK.ICanSetGeoCoordinates
Summary
MLCelestialData component
Properties
| Property | Desciption |
|---|---|
| LunarAltitude | The angle of the moon relative to the Earth�s horizon in degrees. |
| LunarAzimuth | The moon�s horizontal angle with respect to north in degrees. |
| LunarIlluminationFraction | The illuminated fraction of the moon�s disk. A value between 0 and 1. |
| LunarIlluminationAngle | Angle of the moon's bright limb. |
| LunarPhase | The current phase of the moon is indicated by a value between 0 and 1. 0 or 1 indicates the new moon, 0.25 indicates the quarter moon, 0.5 half-moon. |
| SunAltitude | The angle of the sun relative to the Earth's horizon in degrees. |
| SunAzimuth | The sun�s horizontal angle with respect to north. Clockwise positive. For example, sun�s azimuth angle is 90 degrees during full eastern sunrise, until midway. |
| SunMovementEnabled | Indicates if the movement of directional light (sun) by the component enabled. |
Methods
| Method | Description |
|---|---|
| SetCoordinates(double, double) | Set global coordinate of the desired location. |
| ApplyTimeOffset(double) | Applies a time offset to current time in seconds. You can use this function to change time, speed up or slow down time and solar/lunar calculations. (no relation to system time, frame rate or any other time parameters) |
| EnableSunMovement(bool) | Enables or disables the movement of the directional light (sun) by the component. |
| GetLocalTime() | Get current machine independent local time based on specified time zone |
| GetUTCTime() | Current local machine independent UTC time. |

