How to set GET ALL ACTOR CLASS Dynamically?

How do I change ‘Actor Class’ in Get All Actors of Class Dynamically, I created Actor type Variable in WidgetBP, and assign value for that variable in ActorBP, but I can’t access functions in ActorBP while calling in WidgetBP.

MY AIM: I have Lots of ActorBP with Static Mesh in a scene, each and every Static Mesh will detect ‘Left Mouse Click’. I created a common widget and I have to know here in Widget which Static Mesh has been clicked so

So here I have




In OnlyOneWidget I have to access all Actors[Actor1BP, Actor2BP, Actor3BP] in one GetAllActorClass

How It’s possible? Better ideas are wellcome