USunPositionFunctionLibrary::GetSunPosition

Get the sun's position data based on position, date and time

Windows
MacOS
Linux

References

Module

SunPosition

Header

/Engine/Plugins/Runtime/SunPosition/Source/SunPosition/Public/SunPosition.h

Include

#include "SunPosition.h"

Source

/Engine/Plugins/Runtime/SunPosition/Source/SunPosition/Private/SunPosition.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Sun Position")
static void GetSunPosition
(
    float Latitude,
    float Longitude,
    float TimeZone,
    bool bIsDaylightSavingTime,
    int32 Year,
    int32 Month,
    int32 Day,
    int32 Hours,
    int32 Minutes,
    int32 Seconds,
    FSunPositionData & SunPositionData
)

Remarks

Get the sun's position data based on position, date and time

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss