Hello everyone!
I have a big noob question about for each loop and array logical structure.
I would like to be able to control the intensity of a list of lights.
At the moment, I can only set one parameter that controls the intensity of all the lights at the same time, but I’d like the intensity parameter to appear individually for each light.
Hey @lawrence.vicare . Here is something you can do. Create a map with first element being the LightActor and second the float. This way when you create a new index, you will automatically have intensity index for it. Later on you can change the float to a different class which can contain many more properties. I have replicated your code for this and images are shared below.
In fact, I’d like to be able to add this parameter under each light. That way, if I need to add more other paramaters (like Attenuation Radius or Color for exemple), it’ll be easier, I think.