Creating a Blueprint for Light Switch for Multiple Lights

Hello, I am trying to create a project that uses a light switch/button to turn on and off a large group of lights. It would be a mixture of lights inside a blueprint class, spotlights and rect lights in the scene.
I watched a Youtube video explaining how to create a button that when you press it, a single light will turn on and off, but beyond that I am not sure how I should proceed. I want this one button to connect to multiple lights ( ~20 lights) and have them all turn on or off at the same time. I included a screenshot of my current level blueprints. I am a complete beginner, so I have no idea how I can go about this from this point.

Any help would be helpful! Thank you!

1 Like

In a central blueprint, you can use ‘get actors of class’ to find all lights of a certain type.

Then, you can loop over the array that comes from that node, and switch all the lights on or off by changing their visibility.

Thank you! That was part of the solution I found.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.