Download

How do I connect Blueprint actor to Widget without "Get all class of actors"?

Hey guys!

I am trying to clean the code a little. I have many situations in which I have a button (Widget) and it’s conected to a blueprint actor to do something. And this conecction I have done it like this:
2-1-2016 14.1.48 1.jpg

I would like to delete all “Get all actors of class” nodes. I found a solution, with a public variable, but It doesn’t work with widgets. (I can’t set the actor). Look this post:
https://forums.unrealengine.com/showthread.php?95486-Functions-Direct-Blueprint-Communication-Doesn-t-work&p=444832&viewfull=1#post444832

Any idea how can I resolve that connections?

Thanks.

I also want to solve this problem.
Is there anyone who can solve this problem?