How do I switch spotlight colour on UI Button clicked event?

It’s similar to what i’m wanting so thanks for the help.

Thanks soo much. :slight_smile:

There probably is a way but why?

You could match tags, loop through the children of the scrollbox and match them with the world actor’s tag. Super clunky but could work. What is the benefit of making 60 buttons manually?

Sadly, I fail to see the problem here so can’t really advise. I can’t think of anything easier than what I suggested, sorry.

I can’t help without understanding how you’re doing this. Why did it work before? Why is it not working now. How are you filtering the result? And so on.

Probably but that’s a lot of work with setting tags. Whatever you decide, do consider the following:

I can filter anything for any number of actors / widgets:

Took under 10 mins all in all. Here names are numbers. I just duplicated a bunch of actors.

Image from Gyazo

This can be made much, much more efficient! Added to a Dictionary perhaps.

Happy to push the project link if you want to have a look / copy some stuff over. Do tell.

I see but it seems somewhat overengineered. Have a look at my suggestion - it’s just a single loop instead.

No worries. Cleaned it up, added some comments and a little testing debug feature:

Good luck!