Download

Button click event dispatcher in another graph

Hello, I am strugging to bind a custom event to the “ButtonClicked” event of my UMG Widget.

I have 3 graphs:

Widget BP (Calls Event Dispatcher on ButtonClicked)

fc5410edc6338be45b735c280986d376.png

PlayerController BP (Creates the widget and shows it in the viewport)

Staticmesh BP (Animates a component when the button is clicked)

The problem is that I cant find the correct reference to the widget variable so the Staticmesh BP can bind a custom event to OnClicked. Does anyone know which nodes I should use for this?

I have tried creating variables such as a widgetBP and PlayerControllerBP->Get WidgetVar but they do not seem to bind the event.