Hello, I cant understand a thing, for example, I want to create the time in UE (including sunset and sunrise)
I want to create the DirectionalLight from C++, in which class I should create? And how I create?
I tried this:
// in .h
UPROPERTY(EditAnywhere)
UDirectionalLightComponent* Sun;
// in .cpp
Sun = CreateDefaultSubobject<UDirectionalLightComponent>(TEXT("Sun"));
Sun = RootComponent;
Sun->bUsedAsAtmosphereSunLight = true;
How is the good way to create a sun?
I am new in Unreal Engine, so I don’t understand some things…
And I searched for Directional Light properties and I don’t found the Rotation…
Thanks!