Hi there, I’m creating a group of lights through a for loop in Construction Script, and i need to affect the color of the lights in event graph during run time. I have attempted many ways, such as storing the created lights in an public variable Array of lights but I wasn’t successful.(maybe i’m failing to understand the different ways the light arrays could be defined).
I have also tried to create the for loop in event graph but it seems i’m creating a huge amount of lights and the fps drops immediately. If you could point me to some piece of documentation or give me any hint how to solve it i’ll be very thankful.
Hey there, if for some reason storing the components in an array doesn’t work you can call Find Component by Class and that will give you all of the components of a type your actor has.
Hey xlar8or thnx for your answer. Is it possible to identify a single iteration of the light within the component class search? I would like to send a specific color x id of that for loop. I’ll try it out, but you might have knowledge on that. Maybe it has an id or naming related with the for loop creation order?