Hello everyone,
I am trying to create a light switch that holds the reference to all the lights controlled by it, and when activated, the lights switch on/off.
My problem is that i can’t get the editor to reference to the point lights in my scene.
Here is my code:
UPROPERTY(EditAnywhere)
TArray<APointLight*> LightToSwitch;
What I get in my component:
And when I click to any of the point lights in my scene, the array element stays to “None”.
What am I doing wrong?
Thank’s