So, I can go to my level blueprint and reference the Directional Light of my level, and I can acces it to modify his values:
MyLight->AddActorLocalRotation(0.f,1.f,0.f)
It works perfectly… But my problem, is when I try to modify for example the Intensity value (which is part of the inherited Directional Light, not of the actor…)
PD: MyLight->SetIntensity, doesn’t work, because Intensity isn’t a member of my actor.
I have the same issue since 4.20. I try to vary my light intensity in fonction of the Arkit light parameters. It works fine in 4.19 but not in 4.20. I just do a setIntensity on my light component. I use bluePrint.
@pickersZ – can you clarify the following formula? It seemingly works but I am trying to understand the rationale behind it.
float SunIntensity = SunLightRot.Pitch*-0.05f;
Why multiply by -0.05?