In my project, I have a directional light (My sun).
Actually I’m trying to modify it by code…
In my Level Script (Level blueprint c++ class), I have something like:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Level Lights") AActor* MyLight;
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:
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.
How can I do this?