The widget Blueprint looks good. However, in your target Blueprint, you need to bind your event to the widget dispatcher. That means you need a reference to the widget and I’m not entirely sure how to get that. Hmm… looks like there’s a GetAllWidgetsOfClass node that probably works same as GetAllActorsOfClass, so I’d try using that.
Basically, you do the following:
- in your target Blueprints connect the BeginPlay event (or another event guaranteed to happen before the button click) to GetAllWidgetsOfClass with your widget blueprint class
- if the returned array length is > 0, the first element is your widget
- drag out a wire from the returned widget and connect it to “Bind Event to 1x1 Building request” (in the widget blueprint!)
- connect the event to a custom event (as you already did)
- define whatever needs to happen in response to the custom event
Now when the button is pressed, this custom event gets triggered for all actors of this blueprint class. If you need several actors of different Blueprint classes to react to the button press, you need to bind custom events to the widget dispatcher in the other Blueprints, too.