How to access rectlight attached at actors in an array?

Hey, everyone! How can I access the lights attached to my actor in an array?
BP_2

I have a lot of these actors scattered in my project and I want to be able to access the lights. Here’s what I did, I added GetAllActorsOfClass and then stored it in an Array, I’m currently stuck here and I’m unable to access the RectLight that I attached to the actor.

How can I access the rectlight for each actor and then adjust the intensity of it? Thank you in advance for any help.

( In your case, you would search for ‘floor…’ )

Thank you for your reply! Can’t believe I was actually doing it wrong. Thank you very much for this.

1 Like