UnrealScripterAI
Discord ↗
Link Copied to Clipboard
×
"change time of day"
void UWorld::SetTimeOfDay(float NewTimeOfDay) { if (DirectionalLight) { DirectionalLight->SetRelativeRotation(FRotator(NewTimeOfDay * 360.0f, 0.0f, 0.0f)); } }