ponkkis
(ponkkis)
1
How do you set intensity of Directional light in c+±code?
ADirectionalLight* SunLightSource;
SunLightSource->GetLightComponent() Doesn’t give anything related to intensity.
Blueprint example on picture.
ponkkis
(ponkkis)
2
Never mind. I only had to include these both:
#include “Engine/DirectionalLight.h”
#include “Classes/Components/DirectionalLightComponent.h”
to get:
SunLightSource->GetLightComponent()->SetIntensity();
Only included the first one previously.